Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OlePropertyStructs.cs
- mediaeventargs.cs
- ListViewCommandEventArgs.cs
- NavigationHelper.cs
- HttpCapabilitiesEvaluator.cs
- Stylus.cs
- RestClientProxyHandler.cs
- DuplexSecurityProtocolFactory.cs
- UserControlCodeDomTreeGenerator.cs
- FixedNode.cs
- XmlStreamStore.cs
- PolicyException.cs
- ToolStripDropDownItem.cs
- HttpListenerRequest.cs
- CustomValidator.cs
- IsolatedStorageFileStream.cs
- Pkcs7Recipient.cs
- GetWinFXPath.cs
- AbstractExpressions.cs
- AnnotationAuthorChangedEventArgs.cs
- EntityDataSourceColumn.cs
- SqlTriggerContext.cs
- NativeMethods.cs
- NavigationWindowAutomationPeer.cs
- TaskFormBase.cs
- ConnectionOrientedTransportElement.cs
- CodePageUtils.cs
- ExceptionUtil.cs
- BypassElement.cs
- WhileDesigner.xaml.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CompensatableSequenceActivity.cs
- EndPoint.cs
- GenericsInstances.cs
- BCLDebug.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlILTrace.cs
- SoapReflectionImporter.cs
- ProfileBuildProvider.cs
- DataGridSortCommandEventArgs.cs
- ProviderException.cs
- CookieProtection.cs
- SecurityHelper.cs
- WinCategoryAttribute.cs
- PasswordPropertyTextAttribute.cs
- Lease.cs
- PageCatalogPart.cs
- PassportAuthenticationEventArgs.cs
- TreeViewHitTestInfo.cs
- RectangleConverter.cs
- RightsManagementEncryptedStream.cs
- HtmlDocument.cs
- HostingEnvironment.cs
- RadioButtonBaseAdapter.cs
- MobileContainerDesigner.cs
- UnmanagedMemoryStreamWrapper.cs
- WebResponse.cs
- SplitContainer.cs
- LoopExpression.cs
- BufferAllocator.cs
- LockedBorderGlyph.cs
- DocumentViewerAutomationPeer.cs
- XmlSchemaInfo.cs
- DataGridViewCellLinkedList.cs
- PerspectiveCamera.cs
- RouteParametersHelper.cs
- CharacterBuffer.cs
- XmlNavigatorFilter.cs
- BitmapDecoder.cs
- Panel.cs
- WindowsFormsLinkLabel.cs
- RegexGroupCollection.cs
- ScriptControlManager.cs
- TableLayoutSettings.cs
- BindingFormattingDialog.cs
- StrokeIntersection.cs
- DataListCommandEventArgs.cs
- Facet.cs
- FunctionImportMapping.cs
- XmlObjectSerializerWriteContextComplex.cs
- FileInfo.cs
- ListControlStringCollectionEditor.cs
- MessageContractImporter.cs
- Animatable.cs
- PromptBuilder.cs
- DrawingImage.cs
- FontDialog.cs
- PerformanceCounterCategory.cs
- ExtenderProviderService.cs
- LineBreak.cs
- SerialPort.cs
- TypeDependencyAttribute.cs
- UIElement.cs
- ComPlusServiceLoader.cs
- OutputCacheSettingsSection.cs
- Privilege.cs
- AttributeAction.cs
- Html32TextWriter.cs
- WebBrowserProgressChangedEventHandler.cs
- TraceListener.cs