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
- SqlDataSourceCommandEventArgs.cs
- ProcessModelInfo.cs
- ImageAttributes.cs
- ArraySortHelper.cs
- WebEvents.cs
- NamedObject.cs
- ReadOnlyDictionary.cs
- BinaryFormatterWriter.cs
- FixedSOMTextRun.cs
- HttpHandler.cs
- SelectionItemPattern.cs
- _ConnectOverlappedAsyncResult.cs
- DataGridViewRowCancelEventArgs.cs
- ControlEvent.cs
- PagePropertiesChangingEventArgs.cs
- BinaryNode.cs
- PointLight.cs
- SpellerStatusTable.cs
- BaseInfoTable.cs
- SqlReorderer.cs
- FormatException.cs
- Translator.cs
- HtmlElementCollection.cs
- QuadraticBezierSegment.cs
- SecurityElement.cs
- ObjectStateFormatter.cs
- WebBrowserDocumentCompletedEventHandler.cs
- XmlCharCheckingWriter.cs
- DummyDataSource.cs
- AdapterDictionary.cs
- PtsCache.cs
- TouchEventArgs.cs
- OutputCacheProfile.cs
- TitleStyle.cs
- StatusBarPanel.cs
- KeyValueSerializer.cs
- SignatureDescription.cs
- DBConcurrencyException.cs
- XmlSchemaExporter.cs
- PropertyValueUIItem.cs
- CodeExpressionCollection.cs
- TagPrefixAttribute.cs
- StylusButtonCollection.cs
- Expression.cs
- SslStream.cs
- TdsParserSafeHandles.cs
- WebEventCodes.cs
- HuffmanTree.cs
- LambdaCompiler.Statements.cs
- ThreadAttributes.cs
- Roles.cs
- CodeGenerator.cs
- ArrayElementGridEntry.cs
- RegularExpressionValidator.cs
- ByteAnimation.cs
- BreakSafeBase.cs
- Rfc2898DeriveBytes.cs
- ModuleElement.cs
- InertiaExpansionBehavior.cs
- HwndSource.cs
- HashMembershipCondition.cs
- XmlSerializerAssemblyAttribute.cs
- ConnectionPool.cs
- ReferenceSchema.cs
- InfoCardRSACryptoProvider.cs
- NativeObjectSecurity.cs
- DataSourceControl.cs
- ToolStripRenderEventArgs.cs
- RedistVersionInfo.cs
- TreeNodeBinding.cs
- IndependentAnimationStorage.cs
- DependencyPropertyAttribute.cs
- CryptographicAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- Pkcs9Attribute.cs
- PolicyStatement.cs
- ObjectStateFormatter.cs
- HelpKeywordAttribute.cs
- ControlTemplate.cs
- SpellerInterop.cs
- RegexCompiler.cs
- ArrayHelper.cs
- RenderTargetBitmap.cs
- DataTablePropertyDescriptor.cs
- odbcmetadatacollectionnames.cs
- JapaneseLunisolarCalendar.cs
- PhonemeConverter.cs
- MetadataCollection.cs
- EventsTab.cs
- DefinitionProperties.cs
- DataGridViewCellFormattingEventArgs.cs
- HorizontalAlignConverter.cs
- NodeCounter.cs
- LinqDataSourceStatusEventArgs.cs
- TextAnchor.cs
- ApplicationActivator.cs
- DescendantOverDescendantQuery.cs
- DuplexChannelFactory.cs
- XPathScanner.cs
- TraceContextRecord.cs