Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Text / EncodingInfo.cs / 1 / EncodingInfo.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Text { using System; using System.Text; [Serializable] public sealed class EncodingInfo { int iCodePage; // Code Page # String strEncodingName; // Short name (web name) String strDisplayName; // Full localized name internal EncodingInfo(int codePage, string name, string displayName) { this.iCodePage = codePage; this.strEncodingName = name; this.strDisplayName = displayName; } public int CodePage { get { return iCodePage; } } public String Name { get { return strEncodingName; } } public String DisplayName { get { return strDisplayName; } } public Encoding GetEncoding() { return Encoding.GetEncoding(this.iCodePage); } public override bool Equals(Object value) { EncodingInfo that = value as EncodingInfo; if (that != null) { return (this.CodePage == that.CodePage); } return (false); } public override int GetHashCode() { return this.CodePage; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Text { using System; using System.Text; [Serializable] public sealed class EncodingInfo { int iCodePage; // Code Page # String strEncodingName; // Short name (web name) String strDisplayName; // Full localized name internal EncodingInfo(int codePage, string name, string displayName) { this.iCodePage = codePage; this.strEncodingName = name; this.strDisplayName = displayName; } public int CodePage { get { return iCodePage; } } public String Name { get { return strEncodingName; } } public String DisplayName { get { return strDisplayName; } } public Encoding GetEncoding() { return Encoding.GetEncoding(this.iCodePage); } public override bool Equals(Object value) { EncodingInfo that = value as EncodingInfo; if (that != null) { return (this.CodePage == that.CodePage); } return (false); } public override int GetHashCode() { return this.CodePage; } } } // 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
- ZipIOExtraFieldPaddingElement.cs
- AbsoluteQuery.cs
- CompilerHelpers.cs
- RuntimeHandles.cs
- ContainerSelectorBehavior.cs
- DataMemberListEditor.cs
- OracleRowUpdatingEventArgs.cs
- BordersPage.cs
- Object.cs
- PageClientProxyGenerator.cs
- PasswordTextNavigator.cs
- ContentFilePart.cs
- BackgroundFormatInfo.cs
- StateDesigner.CommentLayoutGlyph.cs
- LogReserveAndAppendState.cs
- FormsAuthentication.cs
- GB18030Encoding.cs
- Random.cs
- StylusLogic.cs
- InvalidWMPVersionException.cs
- PageParserFilter.cs
- Calendar.cs
- FontStyles.cs
- CryptoStream.cs
- DataServices.cs
- MultiplexingFormatMapping.cs
- ConfigXmlSignificantWhitespace.cs
- SelectionPatternIdentifiers.cs
- _HeaderInfo.cs
- TextModifierScope.cs
- TagPrefixInfo.cs
- Polyline.cs
- Error.cs
- HttpProtocolReflector.cs
- AssemblyCache.cs
- ToolStripItemTextRenderEventArgs.cs
- TdsParser.cs
- PerformanceCounterPermissionAttribute.cs
- WebPartMenu.cs
- LineInfo.cs
- GradientStop.cs
- XmlSerializerAssemblyAttribute.cs
- SupportsEventValidationAttribute.cs
- CompositeControl.cs
- UnaryNode.cs
- GenericPrincipal.cs
- RuntimeWrappedException.cs
- ControlBuilderAttribute.cs
- ToolboxDataAttribute.cs
- AlgoModule.cs
- _IPv6Address.cs
- CollectionBuilder.cs
- TransformProviderWrapper.cs
- BmpBitmapEncoder.cs
- RemoteAsymmetricSignatureFormatter.cs
- PeerNameRegistration.cs
- OperationValidationEventArgs.cs
- HtmlFormAdapter.cs
- ImagingCache.cs
- odbcmetadatafactory.cs
- PlacementWorkspace.cs
- TableLayoutPanel.cs
- AddInAttribute.cs
- PrivateFontCollection.cs
- VectorAnimation.cs
- ObjectList.cs
- ValidatingPropertiesEventArgs.cs
- WindowsIdentity.cs
- Int32CollectionValueSerializer.cs
- FontConverter.cs
- DeadCharTextComposition.cs
- ApplicationGesture.cs
- DatagridviewDisplayedBandsData.cs
- XmlReflectionImporter.cs
- CatalogPartChrome.cs
- XsltOutput.cs
- PageThemeBuildProvider.cs
- SingleStorage.cs
- Keywords.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- BaseResourcesBuildProvider.cs
- sqlnorm.cs
- KnownBoxes.cs
- IpcServerChannel.cs
- CmsInterop.cs
- RegularExpressionValidator.cs
- ResolveCriteria.cs
- ConditionedDesigner.cs
- NetSectionGroup.cs
- messageonlyhwndwrapper.cs
- SqlConnectionManager.cs
- HtmlWindowCollection.cs
- XsltInput.cs
- ConfigXmlCDataSection.cs
- ParameterToken.cs
- DataViewManagerListItemTypeDescriptor.cs
- PointLightBase.cs
- ToolStripSystemRenderer.cs
- CorePropertiesFilter.cs
- RuntimeWrappedException.cs