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
- MoveSizeWinEventHandler.cs
- SafeMILHandleMemoryPressure.cs
- WebConfigurationFileMap.cs
- AssemblyCache.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- WebPartAddingEventArgs.cs
- XmlTextAttribute.cs
- SoapSchemaMember.cs
- ValidatedControlConverter.cs
- BaseResourcesBuildProvider.cs
- ResourcePart.cs
- EventToken.cs
- IgnoreFlushAndCloseStream.cs
- BlockUIContainer.cs
- XhtmlBasicImageAdapter.cs
- PointValueSerializer.cs
- MetadataArtifactLoader.cs
- SizeChangedInfo.cs
- ClientCultureInfo.cs
- PropertyInfo.cs
- LocalBuilder.cs
- RegexFCD.cs
- SendMailErrorEventArgs.cs
- TransportReplyChannelAcceptor.cs
- ModelPropertyCollectionImpl.cs
- Attachment.cs
- LogRestartAreaEnumerator.cs
- CompilerInfo.cs
- ReadOnlyDataSourceView.cs
- Graph.cs
- Wizard.cs
- TdsParserSafeHandles.cs
- EventManager.cs
- PerformanceCountersElement.cs
- FunctionQuery.cs
- ObjectDataSourceSelectingEventArgs.cs
- GradientBrush.cs
- BookmarkResumptionRecord.cs
- MimeReturn.cs
- ObservableCollection.cs
- IInstanceTable.cs
- ToolStripItem.cs
- MailBnfHelper.cs
- TimeSpanConverter.cs
- XmlHierarchicalEnumerable.cs
- ResponseStream.cs
- HtmlToClrEventProxy.cs
- TimeoutException.cs
- MsmqTransportBindingElement.cs
- PropagatorResult.cs
- DocumentPageTextView.cs
- OrderedDictionaryStateHelper.cs
- LayoutTableCell.cs
- SiteMapDesignerDataSourceView.cs
- ValueHandle.cs
- complextypematerializer.cs
- WebPartAuthorizationEventArgs.cs
- XmlUnspecifiedAttribute.cs
- MobileCapabilities.cs
- Throw.cs
- HttpDebugHandler.cs
- LayoutExceptionEventArgs.cs
- HMACMD5.cs
- DesignTimeParseData.cs
- basenumberconverter.cs
- DbProviderConfigurationHandler.cs
- FixedTextBuilder.cs
- WindowsRebar.cs
- ControlBuilder.cs
- InkSerializer.cs
- HttpCookie.cs
- TableAutomationPeer.cs
- InstanceData.cs
- TabItemAutomationPeer.cs
- TextParagraphProperties.cs
- DataObjectFieldAttribute.cs
- WorkflowServiceAttributesTypeConverter.cs
- isolationinterop.cs
- AssertFilter.cs
- DirectoryNotFoundException.cs
- RectangleGeometry.cs
- DataPager.cs
- FlagsAttribute.cs
- StylusPointProperty.cs
- _HeaderInfoTable.cs
- DataAccessException.cs
- AppDomainUnloadedException.cs
- AsnEncodedData.cs
- LocatorPart.cs
- ValidatingReaderNodeData.cs
- QilNode.cs
- OdbcErrorCollection.cs
- EntityDataSourceDesignerHelper.cs
- BitmapPalette.cs
- InvalidComObjectException.cs
- TextTreeUndoUnit.cs
- EndPoint.cs
- Token.cs
- StandardToolWindows.cs
- SRGSCompiler.cs