Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Reflection / Emit / ModuleBuilderData.cs / 1 / ModuleBuilderData.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// namespace System.Reflection.Emit { using System; using System.Reflection; using System.IO; using System.Globalization; // This is a package private class. This class hold all of the managed // data member for ModuleBuilder. Note that what ever data members added to // this class cannot be accessed from the EE. [Serializable()] internal class ModuleBuilderData { internal ModuleBuilderData(ModuleBuilder module, String strModuleName, String strFileName) { Init(module, strModuleName, strFileName); } internal virtual void Init(ModuleBuilder module, String strModuleName, String strFileName) { m_fGlobalBeenCreated = false; m_fHasGlobal = false; m_globalTypeBuilder = new TypeBuilder(module); m_module = module; m_strModuleName = strModuleName; m_tkFile = 0; m_isSaved = false; m_embeddedRes = null; m_strResourceFileName = null; m_resourceBytes = null; if (strFileName == null) { // fake a transient module file name m_strFileName = strModuleName; m_isTransient = true; } else { String strExtension = Path.GetExtension(strFileName); if (strExtension == null || strExtension == String.Empty) { // This is required by our loader. It cannot load module file that does not have file extension. throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_NoModuleFileExtension"), strFileName)); } m_strFileName = strFileName; m_isTransient = false; } m_module.InternalSetModuleProps(m_strModuleName); } internal virtual bool IsTransient() { return m_isTransient; } internal String m_strModuleName; // scope name (can be different from file name) internal String m_strFileName; internal bool m_fGlobalBeenCreated; internal bool m_fHasGlobal; [NonSerialized] internal TypeBuilder m_globalTypeBuilder; [NonSerialized] internal ModuleBuilder m_module; internal int m_tkFile; // this is the file token for this module builder internal bool m_isSaved; [NonSerialized] internal ResWriterData m_embeddedRes; internal const String MULTI_BYTE_VALUE_CLASS = "$ArrayType$"; internal bool m_isTransient; internal String m_strResourceFileName; internal byte[] m_resourceBytes; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// namespace System.Reflection.Emit { using System; using System.Reflection; using System.IO; using System.Globalization; // This is a package private class. This class hold all of the managed // data member for ModuleBuilder. Note that what ever data members added to // this class cannot be accessed from the EE. [Serializable()] internal class ModuleBuilderData { internal ModuleBuilderData(ModuleBuilder module, String strModuleName, String strFileName) { Init(module, strModuleName, strFileName); } internal virtual void Init(ModuleBuilder module, String strModuleName, String strFileName) { m_fGlobalBeenCreated = false; m_fHasGlobal = false; m_globalTypeBuilder = new TypeBuilder(module); m_module = module; m_strModuleName = strModuleName; m_tkFile = 0; m_isSaved = false; m_embeddedRes = null; m_strResourceFileName = null; m_resourceBytes = null; if (strFileName == null) { // fake a transient module file name m_strFileName = strModuleName; m_isTransient = true; } else { String strExtension = Path.GetExtension(strFileName); if (strExtension == null || strExtension == String.Empty) { // This is required by our loader. It cannot load module file that does not have file extension. throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_NoModuleFileExtension"), strFileName)); } m_strFileName = strFileName; m_isTransient = false; } m_module.InternalSetModuleProps(m_strModuleName); } internal virtual bool IsTransient() { return m_isTransient; } internal String m_strModuleName; // scope name (can be different from file name) internal String m_strFileName; internal bool m_fGlobalBeenCreated; internal bool m_fHasGlobal; [NonSerialized] internal TypeBuilder m_globalTypeBuilder; [NonSerialized] internal ModuleBuilder m_module; internal int m_tkFile; // this is the file token for this module builder internal bool m_isSaved; [NonSerialized] internal ResWriterData m_embeddedRes; internal const String MULTI_BYTE_VALUE_CLASS = "$ArrayType$"; internal bool m_isTransient; internal String m_strResourceFileName; internal byte[] m_resourceBytes; } } // 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
- ClientSponsor.cs
- ExcCanonicalXml.cs
- DataControlPagerLinkButton.cs
- Journal.cs
- XamlTypeMapper.cs
- GeometryGroup.cs
- WebHttpElement.cs
- RSAPKCS1SignatureDeformatter.cs
- XmlException.cs
- CachedCompositeFamily.cs
- _SslSessionsCache.cs
- AttributeCollection.cs
- PagesSection.cs
- UnsafeNativeMethods.cs
- BinaryObjectWriter.cs
- SafeNativeMethods.cs
- OutputCacheProviderCollection.cs
- DependencyProperty.cs
- InfiniteIntConverter.cs
- X509CertificateClaimSet.cs
- HtmlInputRadioButton.cs
- WindowsGraphicsCacheManager.cs
- BamlResourceContent.cs
- Interlocked.cs
- activationcontext.cs
- FileRecordSequenceHelper.cs
- CategoryNameCollection.cs
- DesigntimeLicenseContext.cs
- HttpHeaderCollection.cs
- EntitySqlException.cs
- DataSourceXmlClassAttribute.cs
- RTLAwareMessageBox.cs
- CapiHashAlgorithm.cs
- Menu.cs
- ElementInit.cs
- SendActivityEventArgs.cs
- SortKey.cs
- ToolStripScrollButton.cs
- ImmutableCommunicationTimeouts.cs
- ProbeRequestResponseAsyncResult.cs
- HttpServerVarsCollection.cs
- Validator.cs
- StateItem.cs
- wgx_exports.cs
- ComplexTypeEmitter.cs
- DayRenderEvent.cs
- Roles.cs
- AddingNewEventArgs.cs
- AnnotationResourceChangedEventArgs.cs
- PhoneCallDesigner.cs
- ComboBoxRenderer.cs
- SubMenuStyleCollection.cs
- HttpPostedFileBase.cs
- ChangeDirector.cs
- DummyDataSource.cs
- ApplicationServicesHostFactory.cs
- BindingList.cs
- BitmapInitialize.cs
- CollectionExtensions.cs
- RadioButtonAutomationPeer.cs
- cookiecontainer.cs
- NameObjectCollectionBase.cs
- ProcessProtocolHandler.cs
- WindowsSlider.cs
- WindowsRichEdit.cs
- HtmlElementCollection.cs
- TreeBuilder.cs
- RegexStringValidator.cs
- InteropAutomationProvider.cs
- Control.cs
- EntityContainerEntitySet.cs
- XamlPoint3DCollectionSerializer.cs
- SqlHelper.cs
- IPipelineRuntime.cs
- Math.cs
- GACIdentityPermission.cs
- HandledMouseEvent.cs
- PackageDigitalSignatureManager.cs
- Operator.cs
- DocumentPageView.cs
- SqlXmlStorage.cs
- Frame.cs
- ImageCodecInfoPrivate.cs
- UserPreferenceChangedEventArgs.cs
- ObjectDataSourceStatusEventArgs.cs
- DataBindingExpressionBuilder.cs
- OracleEncoding.cs
- XmlDataSourceView.cs
- _UriSyntax.cs
- EntryPointNotFoundException.cs
- StatusBarDrawItemEvent.cs
- WebConfigurationHostFileChange.cs
- DetailsViewDeleteEventArgs.cs
- ScaleTransform.cs
- WebPartUtil.cs
- ConstraintManager.cs
- XmlAttributeOverrides.cs
- ResourceDisplayNameAttribute.cs
- IdentityNotMappedException.cs
- ArgumentValue.cs