Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlHierarchyData.cs
- VBCodeProvider.cs
- CryptoProvider.cs
- AnnotationResource.cs
- AddInServer.cs
- EqualityComparer.cs
- PersonalizationProviderHelper.cs
- ConsoleCancelEventArgs.cs
- activationcontext.cs
- AdapterUtil.cs
- TextAutomationPeer.cs
- CollectionDataContract.cs
- DetailsViewUpdateEventArgs.cs
- SystemIPAddressInformation.cs
- InvalidComObjectException.cs
- DocumentReferenceCollection.cs
- ImageDrawing.cs
- Parameter.cs
- RegistryExceptionHelper.cs
- ValidationErrorInfo.cs
- DataControlLinkButton.cs
- FocusManager.cs
- AutomationIdentifier.cs
- DataGridTable.cs
- SqlErrorCollection.cs
- XmlBaseWriter.cs
- XmlCustomFormatter.cs
- CallSiteHelpers.cs
- OdbcConnectionHandle.cs
- ExceptionUtility.cs
- WindowPattern.cs
- XmlSchemaExternal.cs
- BaseDataList.cs
- ControlValuePropertyAttribute.cs
- ScriptingRoleServiceSection.cs
- AppearanceEditorPart.cs
- CodeDelegateCreateExpression.cs
- IPipelineRuntime.cs
- RTLAwareMessageBox.cs
- CodeSubDirectory.cs
- EmptyQuery.cs
- ConfigurationLockCollection.cs
- ApplicationBuildProvider.cs
- TdsRecordBufferSetter.cs
- BitStream.cs
- TypeUtil.cs
- ConfigsHelper.cs
- FixUp.cs
- View.cs
- SystemWebCachingSectionGroup.cs
- ReachSerializableProperties.cs
- ResourceAssociationTypeEnd.cs
- CodeMemberProperty.cs
- KeyGestureValueSerializer.cs
- EntryPointNotFoundException.cs
- ZipIORawDataFileBlock.cs
- TypeForwardedToAttribute.cs
- FilteredXmlReader.cs
- FocusWithinProperty.cs
- OutputChannelBinder.cs
- SmiTypedGetterSetter.cs
- DataListItemCollection.cs
- ColumnMap.cs
- ComponentManagerBroker.cs
- bidPrivateBase.cs
- DesignConnectionCollection.cs
- Error.cs
- SerialErrors.cs
- CacheDependency.cs
- CreatingCookieEventArgs.cs
- NTAccount.cs
- MergablePropertyAttribute.cs
- RefreshPropertiesAttribute.cs
- TypeViewSchema.cs
- TextTrailingWordEllipsis.cs
- NameValueCollection.cs
- RegexCapture.cs
- TemplateBindingExpressionConverter.cs
- ByteConverter.cs
- GeneratedView.cs
- UnmanagedMarshal.cs
- CompoundFileReference.cs
- OrderedHashRepartitionEnumerator.cs
- HttpListenerRequest.cs
- InkPresenter.cs
- BooleanStorage.cs
- InputLanguageCollection.cs
- RequestCache.cs
- AttachedProperty.cs
- ItemsPanelTemplate.cs
- EntityReference.cs
- BrowserCapabilitiesFactory35.cs
- OleStrCAMarshaler.cs
- DesignerActionItem.cs
- HttpApplicationFactory.cs
- ClosableStream.cs
- XmlReturnWriter.cs
- LayeredChannelFactory.cs
- SetterBase.cs
- ProxyWebPartManagerDesigner.cs