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
- DeflateEmulationStream.cs
- CommandDevice.cs
- AppDomainProtocolHandler.cs
- SQLSingle.cs
- SplitContainerDesigner.cs
- WindowsFormsHost.cs
- ProcessManager.cs
- ChannelBase.cs
- GridView.cs
- SmiMetaData.cs
- MenuAutoFormat.cs
- TemplateBaseAction.cs
- HwndAppCommandInputProvider.cs
- TableRowsCollectionEditor.cs
- NumberFunctions.cs
- ListSortDescriptionCollection.cs
- _ContextAwareResult.cs
- ArraySet.cs
- NetMsmqSecurityElement.cs
- BezierSegment.cs
- TextWriter.cs
- NativeMethods.cs
- ItemCheckEvent.cs
- ControlPropertyNameConverter.cs
- Rect.cs
- ListBoxItemWrapperAutomationPeer.cs
- CalendarTable.cs
- DetailsViewRow.cs
- CqlGenerator.cs
- RectangleHotSpot.cs
- UriTemplateDispatchFormatter.cs
- PackagingUtilities.cs
- TreeViewAutomationPeer.cs
- StreamMarshaler.cs
- AnnotationResourceChangedEventArgs.cs
- EventLogTraceListener.cs
- ControlParameter.cs
- Debugger.cs
- SignatureToken.cs
- XmlWrappingReader.cs
- NumberSubstitution.cs
- ForeignConstraint.cs
- DateTimeUtil.cs
- LabelExpression.cs
- MethodAccessException.cs
- DesignerAutoFormatStyle.cs
- FormParameter.cs
- MemoryMappedFile.cs
- DesignerActionHeaderItem.cs
- ContentTextAutomationPeer.cs
- XmlIlTypeHelper.cs
- XmlSerializerNamespaces.cs
- ServiceReference.cs
- DrawingServices.cs
- RuntimeConfigLKG.cs
- DBPropSet.cs
- DocumentViewerAutomationPeer.cs
- UTF32Encoding.cs
- RemotingService.cs
- XmlHierarchicalDataSourceView.cs
- safesecurityhelperavalon.cs
- TextElementEnumerator.cs
- Graph.cs
- ProgressChangedEventArgs.cs
- XamlTypeMapperSchemaContext.cs
- Literal.cs
- DatatypeImplementation.cs
- OleDbReferenceCollection.cs
- WindowsProgressbar.cs
- TabControl.cs
- ModuleConfigurationInfo.cs
- FaultCallbackWrapper.cs
- _ProxyRegBlob.cs
- ListItemsCollectionEditor.cs
- Effect.cs
- ExpressionBuilderContext.cs
- SimpleHandlerBuildProvider.cs
- IndexedEnumerable.cs
- BrushMappingModeValidation.cs
- WindowManager.cs
- BulletedListEventArgs.cs
- TextEditorThreadLocalStore.cs
- DataList.cs
- HttpWebRequestElement.cs
- WhitespaceRule.cs
- StringFormat.cs
- SpotLight.cs
- TextBlock.cs
- ClientRoleProvider.cs
- OdbcCommandBuilder.cs
- WindowVisualStateTracker.cs
- SmtpLoginAuthenticationModule.cs
- MemberCollection.cs
- CrossSiteScriptingValidation.cs
- ValidationRule.cs
- TTSEngineProxy.cs
- RequestCacheEntry.cs
- Section.cs
- ObjectContext.cs
- SafeThemeHandle.cs