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
- CompositeCollection.cs
- TypeResolver.cs
- BaseParaClient.cs
- EventlogProvider.cs
- SQLCharsStorage.cs
- DiagnosticsConfiguration.cs
- diagnosticsswitches.cs
- DataService.cs
- CacheDependency.cs
- WeakReferenceList.cs
- LoginView.cs
- SchemaExporter.cs
- Int32Storage.cs
- WindowsHyperlink.cs
- TableLayoutColumnStyleCollection.cs
- SafeThemeHandle.cs
- NamespaceList.cs
- UserPersonalizationStateInfo.cs
- QuaternionAnimationBase.cs
- NotConverter.cs
- JoinQueryOperator.cs
- ClientTargetCollection.cs
- FillRuleValidation.cs
- BitmapEncoder.cs
- ConnectionStringSettingsCollection.cs
- XmlSchemaProviderAttribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RelationshipConverter.cs
- SurrogateSelector.cs
- SettingsSection.cs
- TableRow.cs
- VisualStateChangedEventArgs.cs
- ResetableIterator.cs
- XmlIlGenerator.cs
- BinaryOperationBinder.cs
- ExtractorMetadata.cs
- ThrowHelper.cs
- EqualityComparer.cs
- ProofTokenCryptoHandle.cs
- ArcSegment.cs
- DynamicQueryableWrapper.cs
- XmlRawWriter.cs
- ExpressionBindings.cs
- EntitySqlException.cs
- CodeCatchClauseCollection.cs
- UInt32.cs
- HttpHandlerAction.cs
- BasePattern.cs
- SqlUDTStorage.cs
- TrailingSpaceComparer.cs
- DisplayNameAttribute.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- JavaScriptString.cs
- BoundingRectTracker.cs
- ObjectTokenCategory.cs
- TemplateBaseAction.cs
- BamlLocalizer.cs
- ObjectQueryProvider.cs
- ResolveNameEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- SplitterCancelEvent.cs
- ConfigurationLockCollection.cs
- SamlSerializer.cs
- CodeDirectoryCompiler.cs
- TextBoxAutomationPeer.cs
- FixedSOMTextRun.cs
- IsolatedStoragePermission.cs
- SqlDataReader.cs
- CommonXSendMessage.cs
- DataGridCaption.cs
- WebControlsSection.cs
- VirtualPathUtility.cs
- templategroup.cs
- arclist.cs
- SafeRightsManagementQueryHandle.cs
- CodeAttributeArgument.cs
- DataGridViewTopLeftHeaderCell.cs
- ValidatorCollection.cs
- SimpleTableProvider.cs
- Win32Exception.cs
- UnmanagedMarshal.cs
- HierarchicalDataBoundControl.cs
- DataGridColumnHeader.cs
- FloaterBaseParagraph.cs
- ContainsRowNumberChecker.cs
- LineBreak.cs
- PrintPreviewDialog.cs
- MSG.cs
- SupportsEventValidationAttribute.cs
- DoubleLink.cs
- DesignerTransactionCloseEvent.cs
- DropDownButton.cs
- ProtocolsConfigurationEntry.cs
- SettingsAttributeDictionary.cs
- ProxyAssemblyNotLoadedException.cs
- TextChange.cs
- QueryCacheKey.cs
- TransformGroup.cs
- CompilerCollection.cs
- ClassData.cs