Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TextEndOfSegment.cs
- TextSearch.cs
- CatchBlock.cs
- Operator.cs
- LogoValidationException.cs
- SchemaCollectionCompiler.cs
- EntityDataSourceViewSchema.cs
- SpecialNameAttribute.cs
- VariableQuery.cs
- MLangCodePageEncoding.cs
- WebServiceErrorEvent.cs
- SecurityKeyEntropyMode.cs
- ParserExtension.cs
- ToolStripSeparator.cs
- ListenerTraceUtility.cs
- ListControl.cs
- SQLInt16Storage.cs
- HitTestWithPointDrawingContextWalker.cs
- ValidatedMobileControlConverter.cs
- DoubleConverter.cs
- XmlCustomFormatter.cs
- LabelExpression.cs
- Win32SafeHandles.cs
- ApplicationProxyInternal.cs
- ListSortDescription.cs
- FlagsAttribute.cs
- TagPrefixCollection.cs
- HorizontalAlignConverter.cs
- ToolStripContainer.cs
- WebPartDescriptionCollection.cs
- ServiceDescriptions.cs
- SelectionRangeConverter.cs
- BuildResult.cs
- ResourceProperty.cs
- SelectionPattern.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SortableBindingList.cs
- DirectoryNotFoundException.cs
- NativeRecognizer.cs
- OrderedDictionary.cs
- XmlDictionary.cs
- Intellisense.cs
- HttpListenerTimeoutManager.cs
- XmlEntity.cs
- BulletDecorator.cs
- SetStoryboardSpeedRatio.cs
- RichTextBoxAutomationPeer.cs
- TextTreeTextNode.cs
- SecureConversationSecurityTokenParameters.cs
- ImageInfo.cs
- ExecutionContext.cs
- DbConvert.cs
- DataGridTablesFactory.cs
- VirtualDirectoryMappingCollection.cs
- ExtensionSimplifierMarkupObject.cs
- PassportIdentity.cs
- ToolStripMenuItem.cs
- GenerateTemporaryTargetAssembly.cs
- HierarchicalDataSourceIDConverter.cs
- PageStatePersister.cs
- Positioning.cs
- PanelDesigner.cs
- FontNameEditor.cs
- BitmapSourceSafeMILHandle.cs
- ScriptManagerProxy.cs
- TextMetrics.cs
- ActiveDocumentEvent.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HttpHandler.cs
- autovalidator.cs
- FontUnit.cs
- BasePattern.cs
- XmlC14NWriter.cs
- WebPartUtil.cs
- WSSecurityTokenSerializer.cs
- DbCommandTree.cs
- DeclarativeCatalogPartDesigner.cs
- HtmlLink.cs
- NeutralResourcesLanguageAttribute.cs
- SecurityPolicySection.cs
- WS2007FederationHttpBindingCollectionElement.cs
- RelatedView.cs
- ConfigurationSettings.cs
- ListParaClient.cs
- WebConfigurationHostFileChange.cs
- Msmq.cs
- CodeGroup.cs
- TableDetailsRow.cs
- SecurityUtils.cs
- SqlProviderUtilities.cs
- ApplicationManager.cs
- EmptyWorkItem.cs
- TerminatorSinks.cs
- PointCollection.cs
- _RequestCacheProtocol.cs
- ObjectDisposedException.cs
- DataSourceSelectArguments.cs
- ADMembershipUser.cs
- SqlErrorCollection.cs
- QueryContext.cs