Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Text / EncodingInfo.cs / 1305376 / 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; } } [System.Security.SecuritySafeCritical] // auto-generated 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; } } [System.Security.SecuritySafeCritical] // auto-generated 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
- TabPageDesigner.cs
- NamedPipeProcessProtocolHandler.cs
- SecurityAccessDeniedException.cs
- CommentGlyph.cs
- DefaultSettingsSection.cs
- SortedSet.cs
- BoolLiteral.cs
- NotSupportedException.cs
- AlphaSortedEnumConverter.cs
- XmlLoader.cs
- ColumnCollection.cs
- peersecuritysettings.cs
- BitmapEffectInputConnector.cs
- CapabilitiesState.cs
- SerialStream.cs
- AsyncDataRequest.cs
- CodeTypeDeclaration.cs
- HMACSHA1.cs
- safelink.cs
- SystemIPInterfaceProperties.cs
- infer.cs
- ButtonAutomationPeer.cs
- MultiView.cs
- BlockExpression.cs
- datacache.cs
- PrintPreviewGraphics.cs
- Fonts.cs
- AttachmentCollection.cs
- FrameworkEventSource.cs
- SectionRecord.cs
- ReflectEventDescriptor.cs
- DetailsViewDeleteEventArgs.cs
- PrintPreviewGraphics.cs
- hresults.cs
- CredentialSelector.cs
- ToolBar.cs
- UpdateEventArgs.cs
- TreeNodeStyleCollection.cs
- ApplicationId.cs
- StylusButton.cs
- FSWPathEditor.cs
- SuppressIldasmAttribute.cs
- CodeSnippetStatement.cs
- UxThemeWrapper.cs
- SecurityState.cs
- PersonalizationEntry.cs
- HtmlElement.cs
- RegionIterator.cs
- PnrpPeerResolverBindingElement.cs
- Dictionary.cs
- CellIdBoolean.cs
- TemplateColumn.cs
- Validator.cs
- WindowsSecurityToken.cs
- MultiTrigger.cs
- DriveNotFoundException.cs
- TextEffectCollection.cs
- UserPreferenceChangingEventArgs.cs
- DataConnectionHelper.cs
- XmlCharCheckingWriter.cs
- ConfigurationManagerInternalFactory.cs
- QilNode.cs
- FormViewInsertEventArgs.cs
- StylusSystemGestureEventArgs.cs
- SourceInterpreter.cs
- HandlerBase.cs
- CFGGrammar.cs
- StateRuntime.cs
- ExternalFile.cs
- ViewStateException.cs
- XmlComment.cs
- XsdBuilder.cs
- ServiceBusyException.cs
- SoapSchemaImporter.cs
- GroupByExpressionRewriter.cs
- XPathDocumentBuilder.cs
- SqlDataSourceCommandParser.cs
- XmlExpressionDumper.cs
- OutputChannel.cs
- SpeechDetectedEventArgs.cs
- HttpResponseInternalBase.cs
- CngKeyBlobFormat.cs
- EntityWrapper.cs
- CompositeClientFormatter.cs
- RecordBuilder.cs
- InkCollectionBehavior.cs
- SafeNativeMethods.cs
- mediaeventshelper.cs
- MatrixAnimationUsingKeyFrames.cs
- ToolboxBitmapAttribute.cs
- HtmlContainerControl.cs
- ResourceExpressionBuilder.cs
- KeyEvent.cs
- SqlWebEventProvider.cs
- MarshalByRefObject.cs
- DataGridViewCellStateChangedEventArgs.cs
- rsa.cs
- AncestorChangedEventArgs.cs
- MemberRestriction.cs
- ObjectStateEntryDbUpdatableDataRecord.cs