Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / Emit / ModuleBuilderData.cs / 2 / 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; } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BinaryExpression.cs
- PropertyFilter.cs
- ColumnWidthChangedEvent.cs
- MsmqAppDomainProtocolHandler.cs
- SpecularMaterial.cs
- TemplatedAdorner.cs
- DataGridItem.cs
- ObjectDataSourceEventArgs.cs
- CreateUserWizard.cs
- CssTextWriter.cs
- Message.cs
- PartManifestEntry.cs
- compensatingcollection.cs
- CodeFieldReferenceExpression.cs
- XmlDesignerDataSourceView.cs
- UnsafeNativeMethods.cs
- SingleKeyFrameCollection.cs
- DateTimeParse.cs
- EntityProviderServices.cs
- AppSettingsReader.cs
- TypeUnloadedException.cs
- SortFieldComparer.cs
- AssemblyCache.cs
- UnsignedPublishLicense.cs
- BindingListCollectionView.cs
- DataGridItemAutomationPeer.cs
- FocusChangedEventArgs.cs
- SimpleParser.cs
- OleDbFactory.cs
- CacheOutputQuery.cs
- RegexCompilationInfo.cs
- NameValueConfigurationCollection.cs
- BinaryObjectWriter.cs
- XmlSchemaAll.cs
- SynchronizedInputProviderWrapper.cs
- HealthMonitoringSection.cs
- XMLUtil.cs
- XmlSchemaSubstitutionGroup.cs
- ProcessThreadCollection.cs
- DiscriminatorMap.cs
- InstanceView.cs
- LightweightEntityWrapper.cs
- XmlRootAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- DaylightTime.cs
- BufferModesCollection.cs
- FilterableAttribute.cs
- PageFunction.cs
- LocalizabilityAttribute.cs
- TagElement.cs
- TreeViewImageIndexConverter.cs
- GeneralTransform.cs
- Operand.cs
- SafeNativeMethodsCLR.cs
- DiagnosticTrace.cs
- RectConverter.cs
- SwitchLevelAttribute.cs
- basevalidator.cs
- ButtonChrome.cs
- CustomValidator.cs
- LineInfo.cs
- SafeRegistryKey.cs
- SmtpTransport.cs
- DataGridViewComboBoxEditingControl.cs
- ZoomComboBox.cs
- smtpconnection.cs
- OleDbEnumerator.cs
- ArraySegment.cs
- ModuleElement.cs
- CorrelationResolver.cs
- CorrelationValidator.cs
- safex509handles.cs
- BypassElement.cs
- CustomLineCap.cs
- BaseParaClient.cs
- DelegatedStream.cs
- NodeLabelEditEvent.cs
- XMLDiffLoader.cs
- HttpsHostedTransportConfiguration.cs
- VersionPair.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ValidationErrorEventArgs.cs
- EntryPointNotFoundException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- JoinSymbol.cs
- AssemblyNameProxy.cs
- GridErrorDlg.cs
- XmlBaseWriter.cs
- EntitySqlQueryCacheKey.cs
- XmlBindingWorker.cs
- GeneralTransform3DCollection.cs
- SettingsContext.cs
- SR.cs
- NativeWindow.cs
- RubberbandSelector.cs
- Effect.cs
- Renderer.cs
- HostedHttpRequestAsyncResult.cs
- DataGridBoundColumn.cs
- TextRenderer.cs