Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Globalization / EncodingDataItem.cs / 1305376 / EncodingDataItem.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Globalization { using System.Text; using System.Runtime.Remoting; using System; // // Data item for EncodingTable. Along with EncodingTable, they are used by // System.Text.Encoding. // // This class stores a pointer to the internal data and the index into that data // where our required information is found. We load the code page, flags and uiFamilyCodePage // immediately because they don't require creating an object. Creating any of the string // names is delayed until somebody actually asks for them and the names are then cached. [Serializable] internal class CodePageDataItem { internal int m_dataIndex; internal int m_uiFamilyCodePage; internal String m_webName; internal String m_headerName; internal String m_bodyName; internal uint m_flags; [System.Security.SecuritySafeCritical] // auto-generated unsafe internal CodePageDataItem(int dataIndex) { m_dataIndex = dataIndex; m_uiFamilyCodePage = EncodingTable.codePageDataPtr[dataIndex].uiFamilyCodePage; m_flags = EncodingTable.codePageDataPtr[dataIndex].flags; } virtual unsafe public String WebName { [System.Security.SecuritySafeCritical] // auto-generated get { if (m_webName==null) { m_webName = new String(EncodingTable.codePageDataPtr[m_dataIndex].webName); } return m_webName; } } public virtual int UIFamilyCodePage { get { return m_uiFamilyCodePage; } } virtual unsafe public String HeaderName { [System.Security.SecuritySafeCritical] // auto-generated get { if (m_headerName==null) { m_headerName = new String(EncodingTable.codePageDataPtr[m_dataIndex].headerName); } return m_headerName; } } virtual unsafe public String BodyName { [System.Security.SecuritySafeCritical] // auto-generated get { if (m_bodyName==null) { m_bodyName = new String(EncodingTable.codePageDataPtr[m_dataIndex].bodyName); } return m_bodyName; } } virtual unsafe public uint Flags { get { return (m_flags); } } } } // 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
- StoragePropertyMapping.cs
- KeyTimeConverter.cs
- ChannelPool.cs
- FragmentQueryProcessor.cs
- InputQueueChannelAcceptor.cs
- CalculatedColumn.cs
- DataServiceQuery.cs
- SecurityElement.cs
- OleDbPropertySetGuid.cs
- HybridDictionary.cs
- ByteAnimationUsingKeyFrames.cs
- ProxySimple.cs
- TraceFilter.cs
- MeshGeometry3D.cs
- ToolboxItemAttribute.cs
- DynamicDataRouteHandler.cs
- EdmToObjectNamespaceMap.cs
- FatalException.cs
- Border.cs
- EncryptedData.cs
- PackageRelationshipCollection.cs
- DoubleAnimationUsingKeyFrames.cs
- Model3DGroup.cs
- CompositeCollectionView.cs
- GiveFeedbackEvent.cs
- TransformProviderWrapper.cs
- AnnotationResource.cs
- ServiceThrottle.cs
- RolePrincipal.cs
- BamlTreeNode.cs
- XamlWriter.cs
- Decoder.cs
- ListBox.cs
- Site.cs
- ConfigsHelper.cs
- xsdvalidator.cs
- MSHTMLHost.cs
- DebugTrace.cs
- DockPattern.cs
- HtmlMeta.cs
- StringTraceRecord.cs
- CommandDevice.cs
- ItemList.cs
- Durable.cs
- DivideByZeroException.cs
- InkCanvasFeedbackAdorner.cs
- FormsAuthenticationTicket.cs
- ProviderSettings.cs
- Int16.cs
- SvcMapFileLoader.cs
- SecurityTokenParametersEnumerable.cs
- NumericUpDown.cs
- PreProcessInputEventArgs.cs
- LocalClientSecuritySettingsElement.cs
- DataServiceRequestException.cs
- CollectionContainer.cs
- SoapExtension.cs
- PointConverter.cs
- BindToObject.cs
- TextSelectionHelper.cs
- FixedBufferAttribute.cs
- ConfigurationManagerInternal.cs
- MimeWriter.cs
- FillBehavior.cs
- HttpErrorTraceRecord.cs
- TimeSpanMinutesConverter.cs
- DashStyles.cs
- MediaCommands.cs
- Decoder.cs
- EnumMember.cs
- Rules.cs
- TokenBasedSet.cs
- Int64Animation.cs
- PictureBox.cs
- ToolboxItemLoader.cs
- DataControlButton.cs
- ScrollViewerAutomationPeer.cs
- ItemType.cs
- XmlUrlResolver.cs
- DataGridViewButtonCell.cs
- QilGeneratorEnv.cs
- DrawingDrawingContext.cs
- Point3D.cs
- ObjectAssociationEndMapping.cs
- LoginUtil.cs
- ComponentEditorForm.cs
- ConnectionManagementSection.cs
- TypeEnumerableViewSchema.cs
- followingquery.cs
- PrimitiveXmlSerializers.cs
- TemplateFactory.cs
- MetafileHeader.cs
- XmlSchemaAll.cs
- ServiceAuthorizationElement.cs
- WindowsFormsHost.cs
- DbDataAdapter.cs
- TagMapCollection.cs
- XhtmlConformanceSection.cs
- CommunicationObjectManager.cs
- IteratorFilter.cs