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
- OleDbStruct.cs
- PluggableProtocol.cs
- OperationCanceledException.cs
- EncoderParameters.cs
- ControlPaint.cs
- CounterCreationData.cs
- ComponentEditorForm.cs
- ManagedFilter.cs
- Win32Native.cs
- XmlSchemaComplexContentExtension.cs
- DataReceivedEventArgs.cs
- Color.cs
- SocketException.cs
- EncryptedType.cs
- SpellCheck.cs
- PathFigure.cs
- WebProxyScriptElement.cs
- ListViewHitTestInfo.cs
- DataContractSerializerSection.cs
- HtmlObjectListAdapter.cs
- FileSecurity.cs
- ExternalDataExchangeService.cs
- exports.cs
- QueryCacheKey.cs
- DBDataPermissionAttribute.cs
- BinHexDecoder.cs
- ImageSourceConverter.cs
- NativeMethodsCLR.cs
- ILGen.cs
- followingquery.cs
- StreamFormatter.cs
- XmlWrappingWriter.cs
- ITreeGenerator.cs
- ILGenerator.cs
- ProfileManager.cs
- TypeForwardedToAttribute.cs
- URL.cs
- SHA1.cs
- DoubleKeyFrameCollection.cs
- EventSinkHelperWriter.cs
- ViewGenerator.cs
- Quack.cs
- PrintPreviewGraphics.cs
- ServerIdentity.cs
- ContextQuery.cs
- AxisAngleRotation3D.cs
- CellIdBoolean.cs
- ArgIterator.cs
- Validator.cs
- ResXResourceWriter.cs
- SqlCacheDependencyDatabaseCollection.cs
- DictionaryKeyPropertyAttribute.cs
- TextBoxRenderer.cs
- RepeatInfo.cs
- OrderedDictionary.cs
- NodeFunctions.cs
- Size3DValueSerializer.cs
- DesignerVerbCollection.cs
- IdentitySection.cs
- DataControlFieldCollection.cs
- OletxDependentTransaction.cs
- PersonalizationAdministration.cs
- DbConnectionPoolIdentity.cs
- ServerProtocol.cs
- Update.cs
- ModulesEntry.cs
- ServiceTimeoutsBehavior.cs
- ShaderEffect.cs
- ScriptResourceHandler.cs
- ContextMenuStrip.cs
- ChangePasswordDesigner.cs
- AnimationStorage.cs
- TextSegment.cs
- CommandConverter.cs
- MouseButton.cs
- ViewManagerAttribute.cs
- StylusPlugInCollection.cs
- HttpInputStream.cs
- Vector.cs
- BroadcastEventHelper.cs
- ToolStripPanelRow.cs
- DataGridTextBox.cs
- SystemInformation.cs
- OleDbTransaction.cs
- ConfigsHelper.cs
- RecognizerStateChangedEventArgs.cs
- PrimitiveRenderer.cs
- EntityDataSourceChangedEventArgs.cs
- TypefaceCollection.cs
- InfoCardClaim.cs
- StreamUpdate.cs
- AttributeCollection.cs
- ClickablePoint.cs
- RenderDataDrawingContext.cs
- ThreadExceptionDialog.cs
- ExtensionDataObject.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TreeNodeBindingCollection.cs
- TimeStampChecker.cs
- DataSourceControl.cs