Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UICuesEvent.cs
- IndividualDeviceConfig.cs
- SynchronizedInputHelper.cs
- PropertyPathWorker.cs
- MaskedTextBox.cs
- RouteItem.cs
- WorkflowRuntimeServiceElementCollection.cs
- AspNetPartialTrustHelpers.cs
- DataRecordInternal.cs
- BCryptSafeHandles.cs
- _ScatterGatherBuffers.cs
- StrongNameUtility.cs
- TabletCollection.cs
- CompositionCommandSet.cs
- NullableDecimalAverageAggregationOperator.cs
- LineMetrics.cs
- DataGridViewLinkCell.cs
- Transform3D.cs
- TableParagraph.cs
- ValidationErrorEventArgs.cs
- EntityReference.cs
- DockAndAnchorLayout.cs
- RetriableClipboard.cs
- FixedPosition.cs
- HttpRuntime.cs
- BrowserTree.cs
- RegexTree.cs
- BufferBuilder.cs
- IFlowDocumentViewer.cs
- Psha1DerivedKeyGeneratorHelper.cs
- StylusPointCollection.cs
- Helper.cs
- ValidatedMobileControlConverter.cs
- AutoGeneratedField.cs
- QueryableFilterUserControl.cs
- HttpVersion.cs
- OrderedDictionary.cs
- Visitors.cs
- PriorityBinding.cs
- QuerySafeNavigator.cs
- ConfigurationErrorsException.cs
- SqlExpressionNullability.cs
- ISO2022Encoding.cs
- Binding.cs
- DirectionalLight.cs
- DesigntimeLicenseContext.cs
- EntityDataSourceDesignerHelper.cs
- CoreSwitches.cs
- ColorConverter.cs
- AvtEvent.cs
- StylusDevice.cs
- QuaternionKeyFrameCollection.cs
- MembershipValidatePasswordEventArgs.cs
- Maps.cs
- TextEffectResolver.cs
- Variant.cs
- CheckoutException.cs
- TableColumn.cs
- TextBox.cs
- OutputCacheProfile.cs
- CodeMemberEvent.cs
- DbQueryCommandTree.cs
- TableItemPatternIdentifiers.cs
- RequestNavigateEventArgs.cs
- WmpBitmapDecoder.cs
- SqlMetaData.cs
- EdmType.cs
- _TransmitFileOverlappedAsyncResult.cs
- PackageDigitalSignature.cs
- ConnectionInterfaceCollection.cs
- TagMapInfo.cs
- remotingproxy.cs
- Mappings.cs
- TrackingMemoryStreamFactory.cs
- EnumValidator.cs
- TimeSpanValidator.cs
- BrowserCapabilitiesCompiler.cs
- FigureHelper.cs
- XPathQilFactory.cs
- RoutedEvent.cs
- URL.cs
- TemplateXamlTreeBuilder.cs
- StreamAsIStream.cs
- UInt16Converter.cs
- InlineCollection.cs
- PopupControlService.cs
- NavigatorOutput.cs
- UIElementPropertyUndoUnit.cs
- ExitEventArgs.cs
- PageBuildProvider.cs
- InputLanguageProfileNotifySink.cs
- TreeViewCancelEvent.cs
- XsdDateTime.cs
- DataPagerCommandEventArgs.cs
- DataPagerField.cs
- IgnoreSection.cs
- MembershipUser.cs
- RegisteredDisposeScript.cs
- ScrollBar.cs
- SimpleHandlerBuildProvider.cs