Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RegisteredHiddenField.cs
- EtwTrace.cs
- DataGridViewSelectedCellCollection.cs
- CompilerState.cs
- ToolStripDropDownDesigner.cs
- TemplateBindingExpressionConverter.cs
- XmlElement.cs
- EntityType.cs
- AsymmetricCryptoHandle.cs
- AbsoluteQuery.cs
- Roles.cs
- DrawingContext.cs
- FieldToken.cs
- ConstraintCollection.cs
- VectorCollectionConverter.cs
- ChtmlTextWriter.cs
- AmbientLight.cs
- validationstate.cs
- ImageAnimator.cs
- basevalidator.cs
- SystemParameters.cs
- MissingFieldException.cs
- ThemeableAttribute.cs
- ViewStateChangedEventArgs.cs
- Calendar.cs
- GeneralTransform.cs
- ZipIOCentralDirectoryFileHeader.cs
- CodeDomDecompiler.cs
- WebBrowserHelper.cs
- VBCodeProvider.cs
- ProxyWebPartManager.cs
- SrgsDocument.cs
- RijndaelManagedTransform.cs
- Themes.cs
- TypeExtensionConverter.cs
- ValuePatternIdentifiers.cs
- MailDefinition.cs
- GradientStop.cs
- DocumentGridContextMenu.cs
- PropertyReferenceSerializer.cs
- _ContextAwareResult.cs
- LayoutSettings.cs
- WindowsSolidBrush.cs
- HttpModule.cs
- NavigationService.cs
- ParserStack.cs
- PartialList.cs
- BamlLocalizableResource.cs
- DbParameterCollection.cs
- LingerOption.cs
- SiteMapPath.cs
- Win32Exception.cs
- httpserverutility.cs
- ComUdtElementCollection.cs
- _IPv6Address.cs
- DataRelationCollection.cs
- odbcmetadatacolumnnames.cs
- SymbolEqualComparer.cs
- SQLInt16Storage.cs
- CDSsyncETWBCLProvider.cs
- QueryOptionExpression.cs
- XmlAtomicValue.cs
- HtmlInputImage.cs
- Exception.cs
- BatchServiceHost.cs
- Assert.cs
- MediaContextNotificationWindow.cs
- DataColumnCollection.cs
- SamlAuthorizationDecisionStatement.cs
- TextRangeEditTables.cs
- EnlistmentTraceIdentifier.cs
- WindowsSecurityTokenAuthenticator.cs
- TransactionTable.cs
- VectorKeyFrameCollection.cs
- MexHttpBindingElement.cs
- FixedSOMContainer.cs
- ToolStripSeparatorRenderEventArgs.cs
- PhoneCallDesigner.cs
- WebDisplayNameAttribute.cs
- exports.cs
- TaskSchedulerException.cs
- SQLBytes.cs
- IListConverters.cs
- COM2ExtendedBrowsingHandler.cs
- XmlCodeExporter.cs
- IOException.cs
- SoapIncludeAttribute.cs
- XmlDictionaryWriter.cs
- DataBindingHandlerAttribute.cs
- HandledMouseEvent.cs
- ToolStripArrowRenderEventArgs.cs
- InvalidContentTypeException.cs
- PageBuildProvider.cs
- CharUnicodeInfo.cs
- DtdParser.cs
- HelpProvider.cs
- GridViewSelectEventArgs.cs
- TextDecorationCollection.cs
- TimeSpan.cs
- ContextDataSourceView.cs