Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityElement.cs
- ColumnWidthChangedEvent.cs
- FixedSOMSemanticBox.cs
- WebControl.cs
- AvTraceDetails.cs
- MachineKeyConverter.cs
- WorkItem.cs
- ClientScriptManager.cs
- formatstringdialog.cs
- RegexInterpreter.cs
- StylusPointDescription.cs
- Matrix3D.cs
- UnsafeCollabNativeMethods.cs
- OpCodes.cs
- UpdatePanelTriggerCollection.cs
- SmtpTransport.cs
- NameSpaceExtractor.cs
- GridViewPageEventArgs.cs
- SharedHttpTransportManager.cs
- RoutedEventArgs.cs
- SmtpTransport.cs
- DEREncoding.cs
- XmlSchemaSimpleContentExtension.cs
- DataGridAutoFormat.cs
- ToolStripContentPanel.cs
- X509Utils.cs
- ValidatedMobileControlConverter.cs
- XmlLanguage.cs
- TypeCodeDomSerializer.cs
- LingerOption.cs
- SoapInteropTypes.cs
- PrivilegeNotHeldException.cs
- NamedObject.cs
- DataGridViewHeaderCell.cs
- DataBinding.cs
- PathFigureCollectionConverter.cs
- ReliableInputConnection.cs
- FunctionDescription.cs
- DynamicUpdateCommand.cs
- ConfigurationStrings.cs
- AutoFocusStyle.xaml.cs
- Accessors.cs
- DependencyPropertyKind.cs
- EmptyEnumerator.cs
- Transform.cs
- DocComment.cs
- IndicCharClassifier.cs
- DispatcherTimer.cs
- TcpClientSocketManager.cs
- ListViewInsertionMark.cs
- SQLRoleProvider.cs
- MediaContext.cs
- DesignerObject.cs
- BindingManagerDataErrorEventArgs.cs
- RadialGradientBrush.cs
- SendActivityDesigner.cs
- ProfileModule.cs
- SwitchLevelAttribute.cs
- WrapperSecurityCommunicationObject.cs
- HierarchicalDataBoundControl.cs
- MouseOverProperty.cs
- DesignTimeXamlWriter.cs
- contentDescriptor.cs
- EmptyEnumerator.cs
- CheckPair.cs
- WorkflowInstance.cs
- ModuleBuilder.cs
- LoginUtil.cs
- Color.cs
- MailSettingsSection.cs
- BitVector32.cs
- TransactionTable.cs
- InvokePatternIdentifiers.cs
- NumericUpDownAccelerationCollection.cs
- CqlLexer.cs
- DateTimeConverter.cs
- StorageEntityTypeMapping.cs
- EntityAdapter.cs
- JulianCalendar.cs
- QueryCursorEventArgs.cs
- WizardForm.cs
- DrawListViewSubItemEventArgs.cs
- RtfToXamlReader.cs
- PhysicalFontFamily.cs
- XmlCountingReader.cs
- EastAsianLunisolarCalendar.cs
- EnvelopedPkcs7.cs
- XamlSerializer.cs
- RedistVersionInfo.cs
- RotateTransform.cs
- LocatorGroup.cs
- PrivilegeNotHeldException.cs
- XsltCompileContext.cs
- _FixedSizeReader.cs
- DbParameterCollectionHelper.cs
- JsonCollectionDataContract.cs
- ListControlConvertEventArgs.cs
- CheckBoxFlatAdapter.cs
- DummyDataSource.cs
- TableLayout.cs