Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ThemeDirectoryCompiler.cs
- EqualityComparer.cs
- EdmError.cs
- HitTestDrawingContextWalker.cs
- DynamicILGenerator.cs
- RegexGroup.cs
- BaseServiceProvider.cs
- StringExpressionSet.cs
- CodeIndexerExpression.cs
- Peer.cs
- GeneralTransform3DGroup.cs
- Int16AnimationUsingKeyFrames.cs
- SyndicationDeserializer.cs
- ScrollData.cs
- ProviderConnectionPoint.cs
- PropertyOverridesTypeEditor.cs
- FragmentNavigationEventArgs.cs
- DerivedKeySecurityToken.cs
- ReadOnlyTernaryTree.cs
- SecureEnvironment.cs
- SafeCryptoHandles.cs
- HttpResponseHeader.cs
- HtmlTextViewAdapter.cs
- BitmapEffectInputData.cs
- NetCodeGroup.cs
- COM2AboutBoxPropertyDescriptor.cs
- HttpWriter.cs
- RelatedCurrencyManager.cs
- Html32TextWriter.cs
- DefaultBindingPropertyAttribute.cs
- CookieParameter.cs
- HtmlAnchor.cs
- GuidelineCollection.cs
- DataRowView.cs
- AlphabetConverter.cs
- InputMethodStateTypeInfo.cs
- TextEditorSelection.cs
- UrlAuthorizationModule.cs
- Scene3D.cs
- CodeAttributeDeclaration.cs
- DataSourceListEditor.cs
- SecurityChannel.cs
- QueryCacheEntry.cs
- X509Extension.cs
- TrackingProfileSerializer.cs
- IIS7WorkerRequest.cs
- Span.cs
- CallContext.cs
- MimeParameterWriter.cs
- Win32KeyboardDevice.cs
- GPRECT.cs
- ConnectionPoint.cs
- DropSource.cs
- XmlSchemaObjectCollection.cs
- ConnectionStringsExpressionEditor.cs
- ObjectDataSourceDisposingEventArgs.cs
- CompoundFileReference.cs
- ToolStripPanelCell.cs
- WebPartZoneBase.cs
- ObjectComplexPropertyMapping.cs
- XmlElementList.cs
- GridViewPageEventArgs.cs
- CodeDirectionExpression.cs
- AdornedElementPlaceholder.cs
- LineInfo.cs
- ToolStripManager.cs
- Menu.cs
- PathSegmentCollection.cs
- XmlSchemaExporter.cs
- NavigationCommands.cs
- GatewayDefinition.cs
- SymbolMethod.cs
- DescendentsWalker.cs
- RemoveStoryboard.cs
- ActiveXHost.cs
- AnnotationAdorner.cs
- TextFormatterHost.cs
- FilteredAttributeCollection.cs
- Viewport3DAutomationPeer.cs
- SchemeSettingElement.cs
- FlowDocumentFormatter.cs
- SmtpClient.cs
- ExpressionReplacer.cs
- XmlSchemaSimpleContent.cs
- ContainerControl.cs
- ByteStreamMessageEncoderFactory.cs
- SwitchAttribute.cs
- FieldTemplateFactory.cs
- StopStoryboard.cs
- DesignerValidationSummaryAdapter.cs
- Sql8ExpressionRewriter.cs
- DataObjectFieldAttribute.cs
- ByteStream.cs
- Effect.cs
- DateTimeValueSerializer.cs
- DataRelationPropertyDescriptor.cs
- OrderPreservingPipeliningMergeHelper.cs
- Root.cs
- Bold.cs
- DataGridTablesFactory.cs