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
- WizardStepBase.cs
- MimeMapping.cs
- SchemaName.cs
- AuthenticationConfig.cs
- SelectionUIService.cs
- PathData.cs
- RtfFormatStack.cs
- ProxyGenerator.cs
- NativeMethods.cs
- XmlResolver.cs
- PenLineJoinValidation.cs
- StatusBarItemAutomationPeer.cs
- DataView.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- CapiSymmetricAlgorithm.cs
- ExpressionPrefixAttribute.cs
- SettingsPropertyValueCollection.cs
- EUCJPEncoding.cs
- RepeatButtonAutomationPeer.cs
- PtsCache.cs
- NetworkInterface.cs
- TextDecorationLocationValidation.cs
- XAMLParseException.cs
- GridViewRow.cs
- ComplexBindingPropertiesAttribute.cs
- TraceData.cs
- RemotingAttributes.cs
- XmlKeywords.cs
- QueryPageSettingsEventArgs.cs
- AdornerPresentationContext.cs
- ParameterToken.cs
- XmlComment.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ReadOnlyPropertyMetadata.cs
- UpDownEvent.cs
- PixelShader.cs
- TextOnlyOutput.cs
- safex509handles.cs
- CollectionChangeEventArgs.cs
- TextElement.cs
- AddressUtility.cs
- EpmSourcePathSegment.cs
- Int32Collection.cs
- WebService.cs
- PageSetupDialog.cs
- ToolStripRendererSwitcher.cs
- PenCursorManager.cs
- Preprocessor.cs
- SequentialOutput.cs
- SqlCacheDependencySection.cs
- DeadCharTextComposition.cs
- Evaluator.cs
- DecimalKeyFrameCollection.cs
- CodePageUtils.cs
- SerialPinChanges.cs
- PasswordTextContainer.cs
- PolicyStatement.cs
- RefreshPropertiesAttribute.cs
- LayoutInformation.cs
- StringUtil.cs
- MDIClient.cs
- XMLSchema.cs
- SessionStateUtil.cs
- SqlProvider.cs
- ReferenceService.cs
- UnaryExpression.cs
- BulletedList.cs
- DesignerExtenders.cs
- Content.cs
- TabControlEvent.cs
- TextViewElement.cs
- MethodMessage.cs
- ReadOnlyHierarchicalDataSource.cs
- BaseDataBoundControl.cs
- LogRecordSequence.cs
- JavaScriptSerializer.cs
- cookiecontainer.cs
- XmlSchemaAttribute.cs
- ServiceManager.cs
- ProviderIncompatibleException.cs
- AxisAngleRotation3D.cs
- ListenerPerfCounters.cs
- storepermissionattribute.cs
- ConsoleTraceListener.cs
- StateChangeEvent.cs
- MemberPathMap.cs
- DataGridViewTopLeftHeaderCell.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- CompilerParameters.cs
- Environment.cs
- ContentDisposition.cs
- DesignTimeTemplateParser.cs
- FragmentNavigationEventArgs.cs
- WpfXamlLoader.cs
- PlainXmlSerializer.cs
- ToolStripEditorManager.cs
- UIElement.cs
- MouseEvent.cs
- SizeFConverter.cs
- TextRenderer.cs