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
- ProfileModule.cs
- UserControlCodeDomTreeGenerator.cs
- ToolStripOverflow.cs
- SerializationFieldInfo.cs
- MLangCodePageEncoding.cs
- RedBlackList.cs
- SchemaTypeEmitter.cs
- MapPathBasedVirtualPathProvider.cs
- MSAAEventDispatcher.cs
- MiniAssembly.cs
- ExeConfigurationFileMap.cs
- PackageStore.cs
- EntityDataSourceDataSelectionPanel.cs
- XmlILConstructAnalyzer.cs
- UrlMapping.cs
- FontStyle.cs
- DPTypeDescriptorContext.cs
- Stack.cs
- ErrorStyle.cs
- TreeViewImageIndexConverter.cs
- EventSource.cs
- KeysConverter.cs
- IndexExpression.cs
- ByteStreamGeometryContext.cs
- TablePatternIdentifiers.cs
- _SslStream.cs
- AssociationSetMetadata.cs
- StylusPointPropertyInfo.cs
- TrustManagerPromptUI.cs
- OdbcEnvironmentHandle.cs
- TypeValidationEventArgs.cs
- SqlUnionizer.cs
- MemberPath.cs
- DialogWindow.cs
- MobileTemplatedControlDesigner.cs
- LicFileLicenseProvider.cs
- KeyFrames.cs
- SspiWrapper.cs
- SupportsEventValidationAttribute.cs
- Span.cs
- SerializableAttribute.cs
- QueryFunctions.cs
- ConfigurationSectionCollection.cs
- SqlCommandBuilder.cs
- TransformedBitmap.cs
- FormViewRow.cs
- DesignerCapabilities.cs
- SchemaComplexType.cs
- DataGridViewBand.cs
- FixedSOMPage.cs
- ProcessStartInfo.cs
- LinkedList.cs
- CursorInteropHelper.cs
- CompletionProxy.cs
- TitleStyle.cs
- EmptyReadOnlyDictionaryInternal.cs
- XPathSelectionIterator.cs
- NullableDoubleSumAggregationOperator.cs
- EventManager.cs
- WrappedIUnknown.cs
- BasicAsyncResult.cs
- WorkItem.cs
- PropertyMappingExceptionEventArgs.cs
- DispatcherExceptionFilterEventArgs.cs
- ChannelSinkStacks.cs
- SecurityManager.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- EntityDataSourceEntitySetNameItem.cs
- XmlAggregates.cs
- LicenseManager.cs
- Route.cs
- CodeTypeMemberCollection.cs
- RadialGradientBrush.cs
- SimpleMailWebEventProvider.cs
- TextBoxLine.cs
- HtmlSelectionListAdapter.cs
- DragDropManager.cs
- ConfigurationException.cs
- RoleBoolean.cs
- IdentifierCreationService.cs
- EntityUtil.cs
- ContainerControlDesigner.cs
- TemplateBamlTreeBuilder.cs
- NotEqual.cs
- CacheChildrenQuery.cs
- PathStreamGeometryContext.cs
- AnimationException.cs
- ArrayElementGridEntry.cs
- EventLogEntry.cs
- HttpInputStream.cs
- DependencyPropertyDescriptor.cs
- MessageQueue.cs
- TextModifierScope.cs
- CqlQuery.cs
- NavigationPropertySingletonExpression.cs
- XmlSchemaInfo.cs
- TableRowCollection.cs
- GridLength.cs
- ConnectionProviderAttribute.cs
- DesignConnection.cs