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
- XmlChildNodes.cs
- SemanticValue.cs
- IPEndPoint.cs
- SingleObjectCollection.cs
- OledbConnectionStringbuilder.cs
- Peer.cs
- BreakRecordTable.cs
- X509SecurityToken.cs
- nulltextnavigator.cs
- DateTimeStorage.cs
- DataGridHeaderBorder.cs
- ViewStateModeByIdAttribute.cs
- cache.cs
- MailFileEditor.cs
- CommentEmitter.cs
- DateBoldEvent.cs
- LostFocusEventManager.cs
- EqualityComparer.cs
- CroppedBitmap.cs
- NamespaceQuery.cs
- ArraySortHelper.cs
- XmlReflectionMember.cs
- Listener.cs
- GridViewCommandEventArgs.cs
- DataGridSortingEventArgs.cs
- DataServiceRequest.cs
- CacheOutputQuery.cs
- ProgressBar.cs
- DataSourceSelectArguments.cs
- FormClosingEvent.cs
- StylusSystemGestureEventArgs.cs
- BasicExpandProvider.cs
- NamespaceDecl.cs
- MsdtcWrapper.cs
- DataServiceClientException.cs
- FormViewDesigner.cs
- ObjectSpanRewriter.cs
- ReadWriteSpinLock.cs
- HwndHost.cs
- CodeTypeReferenceCollection.cs
- CodeEventReferenceExpression.cs
- FloatAverageAggregationOperator.cs
- SmtpAuthenticationManager.cs
- Page.cs
- Point.cs
- CuspData.cs
- IntegerValidator.cs
- TextBox.cs
- TextElementAutomationPeer.cs
- TabControlToolboxItem.cs
- SingleKeyFrameCollection.cs
- FullTextState.cs
- CanonicalFontFamilyReference.cs
- DeflateStream.cs
- HtmlInputControl.cs
- LayoutDump.cs
- PagesChangedEventArgs.cs
- Tile.cs
- InputLanguageCollection.cs
- GZipStream.cs
- TextRunTypographyProperties.cs
- UTF32Encoding.cs
- BufferedStream.cs
- IChannel.cs
- ConnectionManagementElement.cs
- EmptyReadOnlyDictionaryInternal.cs
- RuleElement.cs
- SqlXml.cs
- ResourceManagerWrapper.cs
- ToolStripRendererSwitcher.cs
- XslException.cs
- TableLayoutPanel.cs
- ConfigUtil.cs
- InputLanguageProfileNotifySink.cs
- QuadraticBezierSegment.cs
- SmtpException.cs
- IBuiltInEvidence.cs
- CalendarAutoFormatDialog.cs
- DATA_BLOB.cs
- DriveNotFoundException.cs
- SyncMethodInvoker.cs
- XmlSortKeyAccumulator.cs
- DesignerCatalogPartChrome.cs
- CodeDomDesignerLoader.cs
- StrokeCollection.cs
- SamlAction.cs
- BufferedWebEventProvider.cs
- RadioButton.cs
- PageSettings.cs
- UpdateProgress.cs
- CacheAxisQuery.cs
- TextFormatterHost.cs
- XsdValidatingReader.cs
- StringFormat.cs
- AssertHelper.cs
- TableRowGroupCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- MachineKeySection.cs
- BamlLocalizer.cs
- CultureSpecificCharacterBufferRange.cs