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
- ListSortDescriptionCollection.cs
- XmlCodeExporter.cs
- NetNamedPipeSecurityMode.cs
- QuotedPrintableStream.cs
- BaseTypeViewSchema.cs
- ResourceDictionaryCollection.cs
- ScrollChrome.cs
- ValidatingReaderNodeData.cs
- DataGridViewUtilities.cs
- OutOfMemoryException.cs
- XmlDataSourceNodeDescriptor.cs
- Debug.cs
- SmtpFailedRecipientsException.cs
- input.cs
- SynchronousChannel.cs
- RotateTransform3D.cs
- Section.cs
- _TLSstream.cs
- AnnotationResourceCollection.cs
- validationstate.cs
- FilterElement.cs
- ModulesEntry.cs
- OdbcConnection.cs
- FigureParagraph.cs
- LongValidator.cs
- DisplayToken.cs
- Empty.cs
- ContractSearchPattern.cs
- HandleCollector.cs
- ControlCachePolicy.cs
- SoapElementAttribute.cs
- ServiceDescriptionData.cs
- SpecialFolderEnumConverter.cs
- HttpProfileGroupBase.cs
- DNS.cs
- MessageQueueConverter.cs
- MatrixStack.cs
- UntrustedRecipientException.cs
- XPathAxisIterator.cs
- ExceptionUtil.cs
- RelatedPropertyManager.cs
- SourceLineInfo.cs
- BoundColumn.cs
- GeometryConverter.cs
- FilteredXmlReader.cs
- ComplexBindingPropertiesAttribute.cs
- JumpItem.cs
- ViewCellRelation.cs
- FilterQuery.cs
- DataGridViewCellFormattingEventArgs.cs
- XmlSchemaSimpleTypeRestriction.cs
- Matrix.cs
- DeadCharTextComposition.cs
- VectorCollection.cs
- Control.cs
- ExtensionQuery.cs
- Transform3D.cs
- WebResourceAttribute.cs
- ConfigurationManager.cs
- OleDbTransaction.cs
- CapabilitiesAssignment.cs
- EntityContainerEntitySet.cs
- ServiceBuildProvider.cs
- VirtualPathProvider.cs
- EventLogQuery.cs
- BookmarkEventArgs.cs
- Preprocessor.cs
- EntityChangedParams.cs
- ArgumentNullException.cs
- _SslSessionsCache.cs
- WebPartMenu.cs
- Point4D.cs
- SoapMessage.cs
- EmptyEnumerator.cs
- DatePickerAutomationPeer.cs
- UrlMappingsSection.cs
- ObjectDataSourceSelectingEventArgs.cs
- ToolStripDropDown.cs
- XmlSchemaSimpleTypeList.cs
- XmlSchemaObjectTable.cs
- SpeechEvent.cs
- ListViewCommandEventArgs.cs
- CollectionView.cs
- ConnectionStringSettings.cs
- TraceXPathNavigator.cs
- EntityModelBuildProvider.cs
- ToolStripRendererSwitcher.cs
- OleStrCAMarshaler.cs
- AnnotationResource.cs
- DynamicUpdateCommand.cs
- Container.cs
- XMLUtil.cs
- SoapMessage.cs
- OdbcParameter.cs
- InternalPermissions.cs
- PageTrueTypeFont.cs
- MenuStrip.cs
- TextRunTypographyProperties.cs
- LockedAssemblyCache.cs
- SubMenuStyleCollection.cs