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
- ReachIDocumentPaginatorSerializer.cs
- AttachedPropertyBrowsableAttribute.cs
- StringUtil.cs
- WebPartCatalogCloseVerb.cs
- WpfKnownMemberInvoker.cs
- FlowLayout.cs
- TableColumn.cs
- DaylightTime.cs
- DeferredReference.cs
- ExceptionRoutedEventArgs.cs
- KeyConstraint.cs
- RectKeyFrameCollection.cs
- SkipQueryOptionExpression.cs
- RowSpanVector.cs
- DoubleIndependentAnimationStorage.cs
- Pen.cs
- NativeRecognizer.cs
- SeekStoryboard.cs
- FontNamesConverter.cs
- UrlAuthFailureHandler.cs
- IndexedGlyphRun.cs
- IsolatedStorageFile.cs
- PolicyImporterElement.cs
- InternalDuplexBindingElement.cs
- UrlAuthFailureHandler.cs
- dbdatarecord.cs
- TypeDescriptor.cs
- SqlBuffer.cs
- NodeInfo.cs
- SingleConverter.cs
- HashMembershipCondition.cs
- InputLanguageEventArgs.cs
- SqlAliasesReferenced.cs
- XmlElementCollection.cs
- OutputCacheSettingsSection.cs
- ImageIndexConverter.cs
- ProviderConnectionPoint.cs
- ReadWriteSpinLock.cs
- BinaryVersion.cs
- UnsafeNativeMethodsPenimc.cs
- Delegate.cs
- XamlNamespaceHelper.cs
- AppliesToBehaviorDecisionTable.cs
- DecoratedNameAttribute.cs
- ContentFilePart.cs
- DesignTable.cs
- TrustLevelCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- Publisher.cs
- bidPrivateBase.cs
- PolygonHotSpot.cs
- Bold.cs
- SplitContainer.cs
- RemoteWebConfigurationHost.cs
- FramingEncoders.cs
- TagMapCollection.cs
- FieldMetadata.cs
- HttpResponseHeader.cs
- ToolStripItemClickedEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- CacheModeConverter.cs
- DetailsViewAutoFormat.cs
- TextEndOfLine.cs
- PersonalizationAdministration.cs
- SoundPlayer.cs
- DataBindingHandlerAttribute.cs
- DeploymentSectionCache.cs
- KeysConverter.cs
- CreateParams.cs
- DataGridViewRowEventArgs.cs
- ToolStripDropTargetManager.cs
- CompiledXpathExpr.cs
- UIElementIsland.cs
- InertiaRotationBehavior.cs
- DependencyProperty.cs
- XmlKeywords.cs
- SpAudioStreamWrapper.cs
- CancellationState.cs
- wmiprovider.cs
- ComponentResourceKey.cs
- Timer.cs
- SrgsOneOf.cs
- MsmqInputMessagePool.cs
- AttributeSetAction.cs
- SecurityValidationBehavior.cs
- ErrorWebPart.cs
- TransformerConfigurationWizardBase.cs
- TextBlockAutomationPeer.cs
- GestureRecognizer.cs
- WebPartDescription.cs
- DataGridViewTextBoxCell.cs
- EntityDesignerDataSourceView.cs
- InvalidOleVariantTypeException.cs
- UnSafeCharBuffer.cs
- ExpressionBuilderContext.cs
- GroupAggregateExpr.cs
- IIS7WorkerRequest.cs
- EditorAttribute.cs
- EdmComplexPropertyAttribute.cs
- NamespaceList.cs