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
- SoapEnumAttribute.cs
- QueuePropertyVariants.cs
- NullableConverter.cs
- LocatorGroup.cs
- ExceptionHelpers.cs
- TextElementAutomationPeer.cs
- GeneratedCodeAttribute.cs
- SchemaDeclBase.cs
- CodeCommentStatementCollection.cs
- LocalizableResourceBuilder.cs
- ProviderIncompatibleException.cs
- LockCookie.cs
- ComponentEditorPage.cs
- FileDialogCustomPlace.cs
- PrintPageEvent.cs
- ParallelTimeline.cs
- _TransmitFileOverlappedAsyncResult.cs
- TextSelection.cs
- Quad.cs
- WindowsPrincipal.cs
- SqlDataSourceView.cs
- SkipQueryOptionExpression.cs
- ILGenerator.cs
- ReflectTypeDescriptionProvider.cs
- InputLanguage.cs
- ScriptIgnoreAttribute.cs
- RadioButton.cs
- SoapAttributes.cs
- FormatSettings.cs
- _BaseOverlappedAsyncResult.cs
- SoapHeader.cs
- PeerResolverElement.cs
- BridgeDataRecord.cs
- grammarelement.cs
- WebPartConnectVerb.cs
- ComponentRenameEvent.cs
- LongValidatorAttribute.cs
- ControlCollection.cs
- HttpContext.cs
- ChildDocumentBlock.cs
- latinshape.cs
- VariableDesigner.xaml.cs
- embossbitmapeffect.cs
- UnwrappedTypesXmlSerializerManager.cs
- NamespaceQuery.cs
- FontCacheUtil.cs
- TransportContext.cs
- CodeMethodReturnStatement.cs
- ConfigXmlCDataSection.cs
- ReflectionTypeLoadException.cs
- ProfileService.cs
- DesignerEditorPartChrome.cs
- InternalConfigRoot.cs
- AspCompat.cs
- DrawListViewItemEventArgs.cs
- Inflater.cs
- FrameworkContentElement.cs
- Win32.cs
- InputScope.cs
- PropagatorResult.cs
- IisTraceListener.cs
- NodeFunctions.cs
- MouseOverProperty.cs
- ApplyTemplatesAction.cs
- TextParagraphView.cs
- ControlValuePropertyAttribute.cs
- CompareInfo.cs
- ReachSerializationUtils.cs
- HttpHandlerActionCollection.cs
- ProcessHostServerConfig.cs
- tibetanshape.cs
- XpsDocument.cs
- RequestTimeoutManager.cs
- ApplicationSecurityManager.cs
- MatrixTransform.cs
- SQLDecimal.cs
- NameTable.cs
- IsolatedStorageFile.cs
- ForeignConstraint.cs
- UnsafeNativeMethods.cs
- AnimationException.cs
- NamespaceEmitter.cs
- SystemColors.cs
- TrackingCondition.cs
- HtmlInputHidden.cs
- CompilerInfo.cs
- URLAttribute.cs
- IgnoreDataMemberAttribute.cs
- LinearKeyFrames.cs
- XmlSecureResolver.cs
- DesignerOptionService.cs
- TcpDuplicateContext.cs
- CounterSample.cs
- ImageInfo.cs
- Switch.cs
- NetNamedPipeBinding.cs
- Crc32.cs
- FlowDocument.cs
- ProviderCommandInfoUtils.cs
- DynamicObjectAccessor.cs