Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / Resources / ResXResourceSet.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridCheckBoxColumn.cs
- BinaryConverter.cs
- SchemaImporterExtensionsSection.cs
- SplineKeyFrames.cs
- WebDisplayNameAttribute.cs
- _NtlmClient.cs
- RoutingTable.cs
- _SafeNetHandles.cs
- _LocalDataStore.cs
- Attributes.cs
- ComplexLine.cs
- SchemaElementDecl.cs
- RIPEMD160.cs
- ClassHandlersStore.cs
- MSAAWinEventWrap.cs
- figurelength.cs
- AssemblyEvidenceFactory.cs
- DocumentPageView.cs
- UpdateExpressionVisitor.cs
- DataGridColumnsPage.cs
- _SslSessionsCache.cs
- TreeNodeSelectionProcessor.cs
- StylusButton.cs
- ImageCodecInfoPrivate.cs
- QueryCacheManager.cs
- SpecialNameAttribute.cs
- Rectangle.cs
- PixelFormat.cs
- ButtonField.cs
- Suspend.cs
- KerberosSecurityTokenProvider.cs
- HtmlLink.cs
- HttpChannelListener.cs
- VisemeEventArgs.cs
- NodeFunctions.cs
- RuntimeConfigLKG.cs
- AnimationClock.cs
- StreamingContext.cs
- SortFieldComparer.cs
- XPathDocumentNavigator.cs
- ContextToken.cs
- ComContractElementCollection.cs
- CodeDOMProvider.cs
- AnimationTimeline.cs
- StoragePropertyMapping.cs
- unsafeIndexingFilterStream.cs
- assertwrapper.cs
- SrgsGrammar.cs
- ConvertTextFrag.cs
- BreakRecordTable.cs
- UInt64Storage.cs
- XmlSiteMapProvider.cs
- SByteStorage.cs
- TextEmbeddedObject.cs
- URLString.cs
- MappingItemCollection.cs
- FileRegion.cs
- Overlapped.cs
- ItemContainerPattern.cs
- XmlSignificantWhitespace.cs
- MessageSecurityOverMsmqElement.cs
- NameScope.cs
- DataTableTypeConverter.cs
- FontInfo.cs
- StructuredTypeEmitter.cs
- HtmlInputRadioButton.cs
- _FtpDataStream.cs
- CaretElement.cs
- GridViewColumn.cs
- DebugView.cs
- TextRenderer.cs
- UriTemplateTableMatchCandidate.cs
- StorageConditionPropertyMapping.cs
- ParentControlDesigner.cs
- DefaultProfileManager.cs
- CodeDelegateInvokeExpression.cs
- PolyBezierSegment.cs
- SegmentInfo.cs
- CookielessHelper.cs
- Fonts.cs
- SqlStream.cs
- CodeDOMProvider.cs
- TypeEnumerableViewSchema.cs
- DataSetSchema.cs
- ObjectNotFoundException.cs
- NativeCompoundFileAPIs.cs
- EntityDataSourceUtil.cs
- CommandBindingCollection.cs
- WindowsFormsHost.cs
- IntegerValidatorAttribute.cs
- TextServicesProperty.cs
- MultipartIdentifier.cs
- ServiceNotStartedException.cs
- Pointer.cs
- BaseValidator.cs
- OdbcParameter.cs
- WebPartZoneBase.cs
- JoinTreeSlot.cs
- FixedSOMGroup.cs
- EllipseGeometry.cs