Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Globalization / EncodingDataItem.cs / 1 / 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_codePage; // UNUSED -- Kept for Everett serialization internal int m_uiFamilyCodePage; internal String m_webName; internal String m_headerName; internal String m_bodyName; internal String m_description; // UNUSED -- Kept for Everett serialization internal uint m_flags; unsafe internal CodePageDataItem(int dataIndex) { m_dataIndex = dataIndex; m_codePage = 0; // UNUSED -- Kept for Everett Serialization, but we always serialize a null object m_uiFamilyCodePage = EncodingTable.codePageDataPtr[dataIndex].uiFamilyCodePage; m_webName=null; m_headerName=null; m_bodyName=null; m_description=null; // UNUSED -- Kept for Everett serialization m_flags = EncodingTable.codePageDataPtr[dataIndex].flags; } virtual unsafe public String WebName { 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 { get { if (m_headerName==null) { m_headerName = new String(EncodingTable.codePageDataPtr[m_dataIndex].headerName); } return m_headerName; } } virtual unsafe public String BodyName { 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignTableCollection.cs
- LoadRetryConstantStrategy.cs
- TemplatedControlDesigner.cs
- HostingEnvironmentException.cs
- IDictionary.cs
- MultipartContentParser.cs
- CharacterString.cs
- PolygonHotSpot.cs
- AdditionalEntityFunctions.cs
- XmlElementList.cs
- XPathChildIterator.cs
- DefaultAssemblyResolver.cs
- FileDialog_Vista.cs
- ToolStripItemImageRenderEventArgs.cs
- UserNameServiceElement.cs
- DataGridCommandEventArgs.cs
- PenLineJoinValidation.cs
- EmptyEnumerator.cs
- ResourceDescriptionAttribute.cs
- TypeConverterValueSerializer.cs
- Math.cs
- HttpHeaderCollection.cs
- WorkflowApplicationException.cs
- WindowsGrip.cs
- TextDecorationCollection.cs
- X509Chain.cs
- HtmlTitle.cs
- HiddenFieldPageStatePersister.cs
- StickyNoteHelper.cs
- HttpDebugHandler.cs
- NonVisualControlAttribute.cs
- SQLGuidStorage.cs
- Html32TextWriter.cs
- TileBrush.cs
- SubqueryTrackingVisitor.cs
- AuthorizationRuleCollection.cs
- SemanticKeyElement.cs
- HttpConfigurationContext.cs
- DispatcherProcessingDisabled.cs
- DBConcurrencyException.cs
- ResourceProviderFactory.cs
- Rectangle.cs
- FixedFlowMap.cs
- Hashtable.cs
- DrawingImage.cs
- StringArrayConverter.cs
- EncoderBestFitFallback.cs
- CircleHotSpot.cs
- DataTableNameHandler.cs
- PrimitiveXmlSerializers.cs
- FixedTextView.cs
- COM2Enum.cs
- HtmlInputReset.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ScriptingAuthenticationServiceSection.cs
- UInt16Storage.cs
- HttpStreamXmlDictionaryReader.cs
- SymbolTable.cs
- TraceListeners.cs
- XmlConvert.cs
- WsatTransactionHeader.cs
- WebConfigurationFileMap.cs
- MutexSecurity.cs
- Renderer.cs
- SimpleWorkerRequest.cs
- CacheRequest.cs
- BuildManagerHost.cs
- ToolStripPanelDesigner.cs
- ParameterCollection.cs
- SimpleBitVector32.cs
- CreateUserWizard.cs
- SessionStateModule.cs
- InternalConfigSettingsFactory.cs
- PolyBezierSegment.cs
- DocumentPropertiesDialog.cs
- PropertyDescriptorCollection.cs
- BatchStream.cs
- SendMailErrorEventArgs.cs
- ValidationSettings.cs
- MetadataArtifactLoaderCompositeResource.cs
- FixUpCollection.cs
- NavigationService.cs
- PrintDialogDesigner.cs
- DesignSurfaceManager.cs
- BypassElementCollection.cs
- IncrementalReadDecoders.cs
- PreviewPageInfo.cs
- InfoCardRSACryptoProvider.cs
- DropAnimation.xaml.cs
- EncryptedKey.cs
- NonBatchDirectoryCompiler.cs
- ContentElement.cs
- XsdBuildProvider.cs
- ArcSegment.cs
- StyleBamlTreeBuilder.cs
- XmlAnyAttributeAttribute.cs
- XmlImplementation.cs
- EntityDataSourceDesigner.cs
- TextRangeProviderWrapper.cs
- FragmentQuery.cs