Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / Resources / ResXResourceSet.cs / 1305376 / 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
- DataGridViewSelectedCellCollection.cs
- RMEnrollmentPage3.cs
- CfgRule.cs
- HandlerFactoryCache.cs
- CharacterBuffer.cs
- LicFileLicenseProvider.cs
- SqlDataAdapter.cs
- MeasurementDCInfo.cs
- TrustManager.cs
- ApplicationDirectoryMembershipCondition.cs
- UnsafeNativeMethods.cs
- SetterTriggerConditionValueConverter.cs
- EventSinkHelperWriter.cs
- PropertyChangedEventArgs.cs
- Helper.cs
- HttpApplicationFactory.cs
- arabicshape.cs
- XPathNode.cs
- HttpValueCollection.cs
- ButtonBaseAdapter.cs
- BodyGlyph.cs
- InkCanvasSelection.cs
- FileFormatException.cs
- MemberAccessException.cs
- StyleBamlTreeBuilder.cs
- ReadWriteObjectLock.cs
- TextRangeProviderWrapper.cs
- StringValidator.cs
- XmlAttribute.cs
- GeometryModel3D.cs
- SBCSCodePageEncoding.cs
- WebPartRestoreVerb.cs
- MobileUserControlDesigner.cs
- LinqDataSourceSelectEventArgs.cs
- EntityDataSourceChangedEventArgs.cs
- SimpleHandlerBuildProvider.cs
- ToggleButton.cs
- SectionUpdates.cs
- MasterPageParser.cs
- ServiceAppDomainAssociationProvider.cs
- Sequence.cs
- AssemblyNameProxy.cs
- PersistenceContextEnlistment.cs
- HostedBindingBehavior.cs
- ToolstripProfessionalRenderer.cs
- GCHandleCookieTable.cs
- columnmapkeybuilder.cs
- FrameworkElementFactory.cs
- TextFormatterHost.cs
- FieldBuilder.cs
- HashSetDebugView.cs
- GetPageCompletedEventArgs.cs
- SessionParameter.cs
- DataViewSetting.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- OletxCommittableTransaction.cs
- ValidationEventArgs.cs
- GregorianCalendar.cs
- XmlLanguage.cs
- SequenceNumber.cs
- SmtpClient.cs
- ClientUIRequest.cs
- HttpPostLocalhostServerProtocol.cs
- _RequestCacheProtocol.cs
- TimerElapsedEvenArgs.cs
- SqlConnectionManager.cs
- SqlRowUpdatingEvent.cs
- WebPartEditorOkVerb.cs
- FlatButtonAppearance.cs
- FileChangesMonitor.cs
- CustomGrammar.cs
- UITypeEditor.cs
- XmlNode.cs
- ToolStripPanelRenderEventArgs.cs
- AnnotationHelper.cs
- columnmapfactory.cs
- CodePageUtils.cs
- CompModSwitches.cs
- PointHitTestResult.cs
- TypefaceMetricsCache.cs
- FileDetails.cs
- Tile.cs
- ObjectHelper.cs
- cryptoapiTransform.cs
- DataServiceCollectionOfT.cs
- ContourSegment.cs
- CompositeClientFormatter.cs
- FileLevelControlBuilderAttribute.cs
- Configuration.cs
- RtfNavigator.cs
- RequestCachePolicy.cs
- UserPreferenceChangingEventArgs.cs
- CompositeActivityTypeDescriptor.cs
- AspNetSynchronizationContext.cs
- SafeNativeMethods.cs
- SafeRegistryKey.cs
- __Error.cs
- TextBoxBaseDesigner.cs
- Script.cs
- XmlHierarchicalDataSourceView.cs