Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsSecurityTokenAuthenticator.cs
- Psha1DerivedKeyGenerator.cs
- FontConverter.cs
- ECDiffieHellmanPublicKey.cs
- ToolboxDataAttribute.cs
- Tokenizer.cs
- ActivatableWorkflowsQueryResult.cs
- SelectionItemProviderWrapper.cs
- FunctionQuery.cs
- WebPartVerb.cs
- _CacheStreams.cs
- XmlDataProvider.cs
- WindowsHyperlink.cs
- ContextProperty.cs
- Rotation3DAnimationBase.cs
- ObjectResult.cs
- ResourceProviderFactory.cs
- CodeCompiler.cs
- WorkflowOperationBehavior.cs
- ToolStripLocationCancelEventArgs.cs
- ResourceReferenceExpressionConverter.cs
- ControlAdapter.cs
- ObjectDataSourceFilteringEventArgs.cs
- PersistencePipeline.cs
- AlignmentYValidation.cs
- StructuredTypeInfo.cs
- GroupStyle.cs
- DataViewManagerListItemTypeDescriptor.cs
- WpfWebRequestHelper.cs
- ConnectionManagementSection.cs
- GestureRecognitionResult.cs
- Stackframe.cs
- XamlVector3DCollectionSerializer.cs
- WebPartMovingEventArgs.cs
- WorkflowQueuingService.cs
- MetadataWorkspace.cs
- AuthStoreRoleProvider.cs
- InputLanguageProfileNotifySink.cs
- PathGradientBrush.cs
- CompilerInfo.cs
- DataSetMappper.cs
- ProfileParameter.cs
- PropertyInformation.cs
- FormsAuthenticationCredentials.cs
- ListView.cs
- ComponentEditorPage.cs
- AutoGeneratedFieldProperties.cs
- WindowsAuthenticationModule.cs
- InternalDispatchObject.cs
- PrePostDescendentsWalker.cs
- ResolveCompletedEventArgs.cs
- MetaChildrenColumn.cs
- InternalRelationshipCollection.cs
- InputBuffer.cs
- DefaultMemberAttribute.cs
- HeaderUtility.cs
- WindowsStatusBar.cs
- ElasticEase.cs
- DataObjectCopyingEventArgs.cs
- ElementAction.cs
- securitycriticaldata.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SoapExtensionTypeElementCollection.cs
- ToolStripItemRenderEventArgs.cs
- Size.cs
- SchemaInfo.cs
- BoolLiteral.cs
- SchemaMerger.cs
- RowUpdatedEventArgs.cs
- TypefaceCollection.cs
- HTTPNotFoundHandler.cs
- Persist.cs
- ObjectHelper.cs
- ProviderIncompatibleException.cs
- SspiSafeHandles.cs
- XmlUtil.cs
- AffineTransform3D.cs
- SerializationInfoEnumerator.cs
- XmlConvert.cs
- CollectionBase.cs
- DrawListViewSubItemEventArgs.cs
- InstanceView.cs
- WorkflowMarkupSerializerMapping.cs
- ArrangedElementCollection.cs
- SpeakInfo.cs
- EntityDataSource.cs
- EditingCoordinator.cs
- HttpServerChannel.cs
- ToolStripItem.cs
- ResourcePart.cs
- StyleXamlTreeBuilder.cs
- RowType.cs
- ServiceDocumentFormatter.cs
- DictionaryTraceRecord.cs
- MetaModel.cs
- CatalogPartCollection.cs
- SamlDelegatingWriter.cs
- XsdDateTime.cs
- EntityViewGenerator.cs
- FileInfo.cs