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
- ZipPackagePart.cs
- HttpWebResponse.cs
- XmlnsCompatibleWithAttribute.cs
- _CacheStreams.cs
- TdsParserStaticMethods.cs
- ToolboxItemCollection.cs
- QuaternionValueSerializer.cs
- AsymmetricAlgorithm.cs
- SymLanguageVendor.cs
- InputReportEventArgs.cs
- TrailingSpaceComparer.cs
- CryptoProvider.cs
- ProfileGroupSettings.cs
- ComNativeDescriptor.cs
- CommandValueSerializer.cs
- PageThemeParser.cs
- UnsafeNativeMethodsCLR.cs
- ElementsClipboardData.cs
- MexServiceChannelBuilder.cs
- PersonalizationStateQuery.cs
- AssociationSetEnd.cs
- ConfigXmlWhitespace.cs
- XmlEntityReference.cs
- ConfigXmlDocument.cs
- SortedDictionary.cs
- newitemfactory.cs
- ResourceDisplayNameAttribute.cs
- APCustomTypeDescriptor.cs
- COM2PropertyDescriptor.cs
- XmlILIndex.cs
- TextOnlyOutput.cs
- MarkupCompilePass2.cs
- MemberPath.cs
- Crc32Helper.cs
- OAVariantLib.cs
- PartManifestEntry.cs
- RtfControlWordInfo.cs
- PropertyTabChangedEvent.cs
- SiteMapProvider.cs
- SqlProviderManifest.cs
- CommonDialog.cs
- DataGridState.cs
- AnnotationMap.cs
- CounterSample.cs
- Codec.cs
- BehaviorEditorPart.cs
- WindowsTooltip.cs
- AdditionalEntityFunctions.cs
- InputLanguageCollection.cs
- TrackingDataItemValue.cs
- MimeMapping.cs
- ErrorEventArgs.cs
- ObfuscateAssemblyAttribute.cs
- RegexBoyerMoore.cs
- AuthenticationConfig.cs
- DoubleUtil.cs
- SkinIDTypeConverter.cs
- TextServicesCompartmentEventSink.cs
- MyContact.cs
- Array.cs
- InternalBufferOverflowException.cs
- InheritanceContextChangedEventManager.cs
- IndentedTextWriter.cs
- ClientConfigurationSystem.cs
- AnnotationResourceChangedEventArgs.cs
- DesignerCapabilities.cs
- ButtonBase.cs
- AssertFilter.cs
- TextDocumentView.cs
- ConsoleEntryPoint.cs
- xmlsaver.cs
- StandardOleMarshalObject.cs
- DecoderBestFitFallback.cs
- PenLineJoinValidation.cs
- AnimationClock.cs
- ElementAtQueryOperator.cs
- SettingsAttributes.cs
- TriggerCollection.cs
- ReadOnlyAttribute.cs
- SystemDropShadowChrome.cs
- CommandBinding.cs
- SignHashRequest.cs
- DPCustomTypeDescriptor.cs
- PeerCollaborationPermission.cs
- HiddenFieldPageStatePersister.cs
- TaiwanCalendar.cs
- TreeIterators.cs
- UpdateEventArgs.cs
- PieceNameHelper.cs
- validation.cs
- OptimizedTemplateContentHelper.cs
- TextModifier.cs
- SqlRewriteScalarSubqueries.cs
- objectresult_tresulttype.cs
- MenuItemAutomationPeer.cs
- PagesSection.cs
- WebPartAuthorizationEventArgs.cs
- NetSectionGroup.cs
- PermissionToken.cs
- InvalidFilterCriteriaException.cs