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
- SchemaRegistration.cs
- NativeMethods.cs
- CheckableControlBaseAdapter.cs
- Function.cs
- EarlyBoundInfo.cs
- IsolatedStorageFile.cs
- ControlUtil.cs
- EntityContainer.cs
- PointLightBase.cs
- ListItemCollection.cs
- WindowsProgressbar.cs
- TaiwanCalendar.cs
- SocketException.cs
- TabControlEvent.cs
- Icon.cs
- TextLineBreak.cs
- TagNameToTypeMapper.cs
- TextureBrush.cs
- ListControl.cs
- RecognizedPhrase.cs
- Types.cs
- SymLanguageType.cs
- SimplePropertyEntry.cs
- xdrvalidator.cs
- PagedDataSource.cs
- XmlPreloadedResolver.cs
- SQLMembershipProvider.cs
- dbenumerator.cs
- SafeNativeMethods.cs
- PrintControllerWithStatusDialog.cs
- ObjectDataSourceStatusEventArgs.cs
- CompatibleIComparer.cs
- WaitHandle.cs
- CollectionViewGroup.cs
- ActionItem.cs
- MemoryMappedFile.cs
- recordstate.cs
- KnownBoxes.cs
- TraceRecord.cs
- LogStore.cs
- PresentationTraceSources.cs
- CalendarAutoFormatDialog.cs
- EntityDataSourceContextCreatingEventArgs.cs
- StandardCommands.cs
- XmlWriter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- InstanceStoreQueryResult.cs
- RoleManagerSection.cs
- X509ScopedServiceCertificateElement.cs
- TextRunTypographyProperties.cs
- FileDialogCustomPlace.cs
- RegexCode.cs
- DbConvert.cs
- SystemTcpStatistics.cs
- TrustManagerMoreInformation.cs
- FixedSOMPage.cs
- DesignerActionUIService.cs
- CacheEntry.cs
- DataObjectPastingEventArgs.cs
- DataGridCellAutomationPeer.cs
- GB18030Encoding.cs
- LiteralControl.cs
- XmlNamespaceDeclarationsAttribute.cs
- Soap.cs
- ContainerParaClient.cs
- SelectionEditingBehavior.cs
- TagMapInfo.cs
- GAC.cs
- StorageAssociationTypeMapping.cs
- figurelengthconverter.cs
- MimeMapping.cs
- TranslateTransform.cs
- LocalizableAttribute.cs
- Missing.cs
- FontSource.cs
- __TransparentProxy.cs
- Point3DIndependentAnimationStorage.cs
- EventLogPermissionHolder.cs
- PointAnimationUsingKeyFrames.cs
- ChangeToolStripParentVerb.cs
- TypeRestriction.cs
- ModelPerspective.cs
- AudioDeviceOut.cs
- WorkflowLayouts.cs
- DataSourceListEditor.cs
- DbDataSourceEnumerator.cs
- AtomPub10CategoriesDocumentFormatter.cs
- ObjectAnimationUsingKeyFrames.cs
- PathHelper.cs
- AmbiguousMatchException.cs
- ConfigXmlSignificantWhitespace.cs
- EUCJPEncoding.cs
- Attributes.cs
- ThaiBuddhistCalendar.cs
- NextPreviousPagerField.cs
- RegexRunnerFactory.cs
- AtomMaterializer.cs
- DispatcherHookEventArgs.cs
- UInt64Converter.cs
- AssemblyCache.cs