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
- XamlToRtfParser.cs
- DesignTimeVisibleAttribute.cs
- _DigestClient.cs
- DefaultHttpHandler.cs
- TerminateDesigner.cs
- GenericTextProperties.cs
- ChangeConflicts.cs
- CollectionDataContract.cs
- InfoCardClaim.cs
- TransformerConfigurationWizardBase.cs
- DescendentsWalker.cs
- GenericQueueSurrogate.cs
- DbRetry.cs
- DecoderReplacementFallback.cs
- TextMarkerSource.cs
- ColorConvertedBitmap.cs
- DataGridViewCellParsingEventArgs.cs
- MultidimensionalArrayItemReference.cs
- UnhandledExceptionEventArgs.cs
- HandleCollector.cs
- Decimal.cs
- SortAction.cs
- DbProviderManifest.cs
- TypeLibConverter.cs
- WebPartAuthorizationEventArgs.cs
- ClonableStack.cs
- ArrayWithOffset.cs
- DataError.cs
- StyleModeStack.cs
- FlowLayoutSettings.cs
- StylusDevice.cs
- PreservationFileWriter.cs
- OleDbEnumerator.cs
- Token.cs
- CmsInterop.cs
- SqlProviderManifest.cs
- DataGridViewRow.cs
- Context.cs
- AdornerPresentationContext.cs
- TraceContext.cs
- CustomBinding.cs
- EntityWrapper.cs
- CssStyleCollection.cs
- EncodingNLS.cs
- ListViewInsertEventArgs.cs
- RowUpdatedEventArgs.cs
- TextPattern.cs
- AmbientEnvironment.cs
- TableHeaderCell.cs
- Point3DCollectionConverter.cs
- Oid.cs
- WindowsSysHeader.cs
- ContainerAction.cs
- NameValueCollection.cs
- GridToolTip.cs
- SHA1CryptoServiceProvider.cs
- ReaderOutput.cs
- SchemaElementLookUpTable.cs
- CoTaskMemSafeHandle.cs
- Keywords.cs
- TextShapeableCharacters.cs
- LayoutExceptionEventArgs.cs
- SoapExtensionTypeElementCollection.cs
- NavigationPropertyEmitter.cs
- ConvertEvent.cs
- StructuredTypeEmitter.cs
- TransformerConfigurationWizardBase.cs
- UnmanagedHandle.cs
- ToolStripPanelCell.cs
- DeferrableContent.cs
- DesignerProperties.cs
- RangeValidator.cs
- MsmqPoisonMessageException.cs
- KeyboardNavigation.cs
- AttributeCollection.cs
- FontFamilyConverter.cs
- DataSourceControlBuilder.cs
- KeyManager.cs
- DatagridviewDisplayedBandsData.cs
- ProtectedUri.cs
- CustomAttribute.cs
- IsolationInterop.cs
- TabControlEvent.cs
- OrderedParallelQuery.cs
- XmlAttributeCollection.cs
- RelationshipFixer.cs
- InternalBase.cs
- SmiSettersStream.cs
- ProfilePropertySettingsCollection.cs
- DbException.cs
- RegexCompiler.cs
- HtmlTable.cs
- KeyValuePair.cs
- ContextBase.cs
- Scripts.cs
- Pipe.cs
- DataGridViewCellLinkedList.cs
- DetailsViewInsertedEventArgs.cs
- SettingsPropertyCollection.cs
- WebPartDescription.cs