Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- EventLogPermissionEntryCollection.cs
- configsystem.cs
- XmlDataFileEditor.cs
- LocatorPart.cs
- BoundField.cs
- dataSvcMapFileLoader.cs
- RotateTransform.cs
- StorageModelBuildProvider.cs
- Crc32.cs
- WhitespaceRuleLookup.cs
- FontFamily.cs
- DiscriminatorMap.cs
- SystemKeyConverter.cs
- CategoryGridEntry.cs
- RestClientProxyHandler.cs
- BitSet.cs
- LifetimeServices.cs
- XmlConvert.cs
- InlineCategoriesDocument.cs
- CurrentChangingEventArgs.cs
- HtmlShimManager.cs
- DataControlFieldHeaderCell.cs
- DateTimeValueSerializer.cs
- UTF7Encoding.cs
- EncryptedPackage.cs
- DbConnectionPoolIdentity.cs
- BasicCommandTreeVisitor.cs
- LiteralText.cs
- WmpBitmapEncoder.cs
- ResourceLoader.cs
- FontClient.cs
- DbConnectionPoolGroupProviderInfo.cs
- CurrencyManager.cs
- ObjectViewEntityCollectionData.cs
- CompositeControl.cs
- ItemContainerProviderWrapper.cs
- EntityDataSourceDataSelectionPanel.cs
- RegexMatch.cs
- SmiGettersStream.cs
- LoginUtil.cs
- odbcmetadatacollectionnames.cs
- Int32Rect.cs
- Util.cs
- SessionIDManager.cs
- IgnoreFileBuildProvider.cs
- Translator.cs
- RequestNavigateEventArgs.cs
- ValidationErrorEventArgs.cs
- AssemblyUtil.cs
- CommandDevice.cs
- TagPrefixInfo.cs
- TreeWalker.cs
- PointCollectionConverter.cs
- xamlnodes.cs
- GenericTextProperties.cs
- WindowsRebar.cs
- _SafeNetHandles.cs
- DateTimeOffset.cs
- FontCacheLogic.cs
- ElementMarkupObject.cs
- CompModHelpers.cs
- ToolboxComponentsCreatedEventArgs.cs
- DESCryptoServiceProvider.cs
- SqlDataSourceSelectingEventArgs.cs
- ModulesEntry.cs
- Trace.cs
- MemoryMappedViewAccessor.cs
- LinkDescriptor.cs
- SizeConverter.cs
- AffineTransform3D.cs
- DateTime.cs
- XPathParser.cs
- ContentHostHelper.cs
- tooltip.cs
- SrgsDocumentParser.cs
- MultiView.cs
- ImportContext.cs
- TcpTransportBindingElement.cs
- AsyncInvokeContext.cs
- Transform3DCollection.cs
- Translator.cs
- ColorComboBox.cs
- SafeThreadHandle.cs
- XmlParserContext.cs
- ResXResourceWriter.cs
- UserControl.cs
- Typography.cs
- SplitContainerDesigner.cs
- MimeBasePart.cs
- COM2Enum.cs
- ResizeGrip.cs
- XmlObjectSerializerReadContext.cs
- ToolboxItemImageConverter.cs
- PropertyDescriptorCollection.cs
- CryptoHelper.cs
- TreeChangeInfo.cs
- CrossSiteScriptingValidation.cs
- ClientSponsor.cs
- DiscoveryClientDocuments.cs
- PolyQuadraticBezierSegment.cs