Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / Resources / ResXResourceSet.cs / 1 / ResXResourceSet.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- #if !SYSTEM_WEB namespace System.Resources { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System; using System.Windows.Forms; using System.Reflection; using Microsoft.Win32; using System.Drawing; using System.IO; using System.ComponentModel; using System.Collections; using System.Resources; ////// /// ResX resource set. /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class ResXResourceSet : ResourceSet { ////// /// Creates a resource set for the specified file. /// [ SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") // Shipped like this in Everett. ] public ResXResourceSet(String fileName) { this.Reader = new ResXResourceReader(fileName); this.Table = new Hashtable(); ReadResources(); } ////// /// Creates a resource set for the specified stream. /// [ SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") // Shipped like this in Everett. ] public ResXResourceSet(Stream stream) { this.Reader = new ResXResourceReader(stream); this.Table = new Hashtable(); ReadResources(); } ////// /// Gets the default reader type associated with this set. /// public override Type GetDefaultReader() { return typeof(ResXResourceReader); } ////// /// Gets the default writer type associated with this set. /// public override Type GetDefaultWriter() { return typeof(ResXResourceWriter); } } } #endif // !SYSTEM_WEB // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- #if !SYSTEM_WEB namespace System.Resources { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System; using System.Windows.Forms; using System.Reflection; using Microsoft.Win32; using System.Drawing; using System.IO; using System.ComponentModel; using System.Collections; using System.Resources; ////// /// ResX resource set. /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class ResXResourceSet : ResourceSet { ////// /// Creates a resource set for the specified file. /// [ SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") // Shipped like this in Everett. ] public ResXResourceSet(String fileName) { this.Reader = new ResXResourceReader(fileName); this.Table = new Hashtable(); ReadResources(); } ////// /// Creates a resource set for the specified stream. /// [ SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") // Shipped like this in Everett. ] public ResXResourceSet(Stream stream) { this.Reader = new ResXResourceReader(stream); this.Table = new Hashtable(); ReadResources(); } ////// /// Gets the default reader type associated with this set. /// public override Type GetDefaultReader() { return typeof(ResXResourceReader); } ////// /// Gets the default writer type associated with this set. /// public override Type GetDefaultWriter() { return typeof(ResXResourceWriter); } } } #endif // !SYSTEM_WEB // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _SecureChannel.cs
- RightsController.cs
- GroupBox.cs
- CompoundFileReference.cs
- SerializationAttributes.cs
- InternalControlCollection.cs
- UIHelper.cs
- UserControlBuildProvider.cs
- NumberFormatInfo.cs
- CodeDirectionExpression.cs
- AssociationEndMember.cs
- StringBuilder.cs
- ServiceProviders.cs
- PictureBox.cs
- SourceItem.cs
- CultureInfo.cs
- CqlErrorHelper.cs
- XmlILTrace.cs
- StringResourceManager.cs
- Object.cs
- HostingEnvironment.cs
- FieldToken.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SettingsContext.cs
- FixedTextContainer.cs
- XmlQualifiedName.cs
- InputLanguageProfileNotifySink.cs
- EventMappingSettingsCollection.cs
- DataGridHeaderBorder.cs
- CurrentChangedEventManager.cs
- RoutedEventHandlerInfo.cs
- PauseStoryboard.cs
- Item.cs
- Operand.cs
- CssClassPropertyAttribute.cs
- SoapSchemaMember.cs
- HttpConfigurationSystem.cs
- HtmlElementErrorEventArgs.cs
- CodeExporter.cs
- datacache.cs
- NameValueSectionHandler.cs
- ChannelProtectionRequirements.cs
- TreeNodeStyleCollection.cs
- CustomErrorCollection.cs
- SplitterPanel.cs
- TableItemStyle.cs
- FileDialog_Vista.cs
- MaskedTextBox.cs
- ObjectAssociationEndMapping.cs
- OleDbErrorCollection.cs
- MultiDataTrigger.cs
- HttpListenerException.cs
- DetailsViewPagerRow.cs
- TextEndOfParagraph.cs
- AbsoluteQuery.cs
- FileNotFoundException.cs
- HelloOperation11AsyncResult.cs
- PasswordBoxAutomationPeer.cs
- SqlClientFactory.cs
- DecimalAverageAggregationOperator.cs
- ComponentDispatcher.cs
- FileDetails.cs
- CodeGroup.cs
- _OSSOCK.cs
- LinqDataSource.cs
- PageBuildProvider.cs
- ImageAnimator.cs
- WmiPutTraceRecord.cs
- EmptyEnumerable.cs
- EllipticalNodeOperations.cs
- BaseCodeDomTreeGenerator.cs
- TcpActivation.cs
- WebPartZoneBase.cs
- EditorPartChrome.cs
- Attributes.cs
- CheckBoxPopupAdapter.cs
- CodeAttachEventStatement.cs
- Floater.cs
- WindowsProgressbar.cs
- TextEditorParagraphs.cs
- Vector3D.cs
- PhysicalFontFamily.cs
- CaseInsensitiveComparer.cs
- ArrayElementGridEntry.cs
- WebPartConnectionsConfigureVerb.cs
- MemberAccessException.cs
- DesignerWithHeader.cs
- NetworkStream.cs
- OleDbParameterCollection.cs
- XmlSerializerFactory.cs
- CustomPopupPlacement.cs
- WindowsTooltip.cs
- Metadata.cs
- ExpressionNode.cs
- DtrList.cs
- StringKeyFrameCollection.cs
- DefaultIfEmptyQueryOperator.cs
- ServiceHttpHandlerFactory.cs
- DictionaryTraceRecord.cs
- FactoryGenerator.cs