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
- Executor.cs
- ApplicationBuildProvider.cs
- RowsCopiedEventArgs.cs
- DbDataRecord.cs
- Transform3D.cs
- FrameAutomationPeer.cs
- ExceptionCollection.cs
- ColorInterpolationModeValidation.cs
- NativeBuffer.cs
- ColumnWidthChangedEvent.cs
- DocumentSchemaValidator.cs
- StringConverter.cs
- DataSet.cs
- AbstractDataSvcMapFileLoader.cs
- CertificateReferenceElement.cs
- ListManagerBindingsCollection.cs
- LinkLabel.cs
- ReachNamespaceInfo.cs
- QuaternionRotation3D.cs
- MsmqInputChannel.cs
- DataRowExtensions.cs
- EncryptedPackageFilter.cs
- base64Transforms.cs
- BrowserTree.cs
- StreamGeometry.cs
- WindowsGrip.cs
- AutomationElement.cs
- XmlValidatingReader.cs
- XsdDuration.cs
- BamlTreeNode.cs
- EncryptedXml.cs
- HttpValueCollection.cs
- WebServiceEnumData.cs
- LinkLabel.cs
- MemoryStream.cs
- ToolBar.cs
- ListViewInsertedEventArgs.cs
- InvalidOleVariantTypeException.cs
- CompileXomlTask.cs
- WindowsGrip.cs
- DataGridItemEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- SizeKeyFrameCollection.cs
- CardSpaceException.cs
- Matrix3DConverter.cs
- MetadataCacheItem.cs
- MessageSmuggler.cs
- QueryOptionExpression.cs
- Encoder.cs
- ListBindingConverter.cs
- HashCryptoHandle.cs
- CDSsyncETWBCLProvider.cs
- GPStream.cs
- FunctionDetailsReader.cs
- MethodCallExpression.cs
- SchemaAttDef.cs
- ECDsaCng.cs
- VarRemapper.cs
- XmlSchema.cs
- OleDbFactory.cs
- _DigestClient.cs
- ToolStripGrip.cs
- IODescriptionAttribute.cs
- TextComposition.cs
- CachedTypeface.cs
- MessageFilter.cs
- BinarySerializer.cs
- XmlSchemaProviderAttribute.cs
- PlanCompiler.cs
- ObjectListTitleAttribute.cs
- DataControlFieldTypeEditor.cs
- Page.cs
- OleDbPropertySetGuid.cs
- HostAdapter.cs
- TableColumn.cs
- ZipIOExtraFieldZip64Element.cs
- GregorianCalendar.cs
- InternalCache.cs
- ReferencedAssembly.cs
- CharUnicodeInfo.cs
- QuaternionAnimation.cs
- LightweightCodeGenerator.cs
- Storyboard.cs
- UserUseLicenseDictionaryLoader.cs
- SrgsRulesCollection.cs
- Helper.cs
- RuleCache.cs
- CompiledQuery.cs
- ViewManager.cs
- UIElementPropertyUndoUnit.cs
- UseLicense.cs
- _HTTPDateParse.cs
- ReadOnlyDataSourceView.cs
- CompoundFileDeflateTransform.cs
- IDReferencePropertyAttribute.cs
- PlatformNotSupportedException.cs
- LinqDataSourceUpdateEventArgs.cs
- BamlResourceDeserializer.cs
- VectorKeyFrameCollection.cs
- AttributedMetaModel.cs