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
- ClickablePoint.cs
- TargetControlTypeCache.cs
- ObservableDictionary.cs
- RawUIStateInputReport.cs
- SqlParameterCollection.cs
- JumpPath.cs
- NodeCounter.cs
- DeferredSelectedIndexReference.cs
- DataGridViewDataConnection.cs
- StringHandle.cs
- HuffmanTree.cs
- DataSourceSelectArguments.cs
- FieldToken.cs
- ContentHostHelper.cs
- SqlFactory.cs
- TextContainer.cs
- DataGridHelper.cs
- Native.cs
- MetricEntry.cs
- SqlNotificationRequest.cs
- AutomationIdentifier.cs
- RayMeshGeometry3DHitTestResult.cs
- PrintPreviewGraphics.cs
- ApplySecurityAndSendAsyncResult.cs
- Interlocked.cs
- DispatchOperation.cs
- OdbcRowUpdatingEvent.cs
- ContainerParagraph.cs
- Form.cs
- Registry.cs
- OutputCacheModule.cs
- FileLoadException.cs
- MailMessageEventArgs.cs
- RegexWriter.cs
- ThreadAbortException.cs
- OracleBoolean.cs
- ItemCheckedEvent.cs
- MDIClient.cs
- COM2ColorConverter.cs
- ConfigXmlText.cs
- ProtocolsConfigurationHandler.cs
- KeyFrames.cs
- WebRequestModuleElement.cs
- ListBox.cs
- SessionPageStateSection.cs
- XhtmlBasicPageAdapter.cs
- SortedDictionary.cs
- GridEntry.cs
- AutomationElement.cs
- SchemaImporterExtensionElement.cs
- FileDialog_Vista_Interop.cs
- DBConnection.cs
- UserPersonalizationStateInfo.cs
- EmbeddedObject.cs
- FigureParagraph.cs
- WindowInteropHelper.cs
- MinimizableAttributeTypeConverter.cs
- WebColorConverter.cs
- HtmlInputControl.cs
- CLSCompliantAttribute.cs
- SmtpClient.cs
- XslAstAnalyzer.cs
- hebrewshape.cs
- ValidationResults.cs
- SqlError.cs
- DropDownList.cs
- RandomNumberGenerator.cs
- ObjectViewQueryResultData.cs
- StylusPointProperty.cs
- HashHelper.cs
- BuildManagerHost.cs
- rsa.cs
- CompilerErrorCollection.cs
- AlphabetConverter.cs
- XmlName.cs
- NullableFloatSumAggregationOperator.cs
- PeerObject.cs
- SynchronizationLockException.cs
- StrongTypingException.cs
- CompilerGeneratedAttribute.cs
- TempFiles.cs
- assemblycache.cs
- XmlSignatureManifest.cs
- ProgressBar.cs
- ColumnCollectionEditor.cs
- FileRecordSequence.cs
- FlowDocumentReaderAutomationPeer.cs
- ServiceContractListItemList.cs
- RtfControls.cs
- DriveInfo.cs
- DataGrid.cs
- SqlUtil.cs
- ResourceManager.cs
- XmlKeywords.cs
- TextAdaptor.cs
- ComponentCodeDomSerializer.cs
- XmlFormatExtensionPointAttribute.cs
- ParallelEnumerable.cs
- UnsafeNativeMethods.cs
- XPathPatternParser.cs