Code:
/ DotNET / DotNET / 8.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
- JsonStringDataContract.cs
- ValidationManager.cs
- RenamedEventArgs.cs
- UpdateTranslator.cs
- DrawingCollection.cs
- SQLInt16.cs
- FixedSOMTableCell.cs
- _NegoState.cs
- XmlSchemaAttributeGroupRef.cs
- SamlAdvice.cs
- MSG.cs
- PrintEvent.cs
- FamilyTypefaceCollection.cs
- CustomCategoryAttribute.cs
- X509CertificateValidationMode.cs
- ToolStripContainer.cs
- ArraySegment.cs
- AtomicFile.cs
- FormViewCommandEventArgs.cs
- Translator.cs
- XmlMemberMapping.cs
- OdbcConnectionOpen.cs
- IdleTimeoutMonitor.cs
- Expressions.cs
- OpenFileDialog.cs
- PinnedBufferMemoryStream.cs
- ManipulationStartingEventArgs.cs
- ConnectionManagementSection.cs
- UInt32.cs
- XpsFilter.cs
- _AutoWebProxyScriptEngine.cs
- CompositionAdorner.cs
- WebRequestModulesSection.cs
- ObjectToModelValueConverter.cs
- TableAdapterManagerMethodGenerator.cs
- ImageClickEventArgs.cs
- TextEditorThreadLocalStore.cs
- UIElement.cs
- PresentationAppDomainManager.cs
- BuildProviderCollection.cs
- Bits.cs
- TryExpression.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- PackageProperties.cs
- ApplicationId.cs
- OleDbPropertySetGuid.cs
- RuntimeHelpers.cs
- DataGridViewAccessibleObject.cs
- PackWebRequest.cs
- ToolStripPanelRow.cs
- LayoutUtils.cs
- DependencyProperty.cs
- _ListenerAsyncResult.cs
- ProfileService.cs
- AlgoModule.cs
- TextContainerHelper.cs
- SelectQueryOperator.cs
- FunctionGenerator.cs
- BuildProvider.cs
- LocatorPartList.cs
- XsltLoader.cs
- TextRunCache.cs
- TransactionProtocolConverter.cs
- WebColorConverter.cs
- TypeUnloadedException.cs
- TableLayout.cs
- WindowsStartMenu.cs
- TemplateField.cs
- ExternalException.cs
- InvalidPropValue.cs
- SoapInteropTypes.cs
- UpdatePanel.cs
- BitConverter.cs
- LinkLabel.cs
- CodeCastExpression.cs
- CompilerState.cs
- DocumentSchemaValidator.cs
- RecognitionResult.cs
- ConstraintConverter.cs
- SafeCryptoHandles.cs
- SynchronizingStream.cs
- ProcessHostMapPath.cs
- ParallelRangeManager.cs
- COM2TypeInfoProcessor.cs
- ZoneLinkButton.cs
- IndicFontClient.cs
- ExeConfigurationFileMap.cs
- CodeTypeMemberCollection.cs
- ObjectParameter.cs
- PostBackOptions.cs
- RichTextBoxAutomationPeer.cs
- MessageDesigner.cs
- WebPartConnectionsConnectVerb.cs
- SourceItem.cs
- _SecureChannel.cs
- TextRangeBase.cs
- ResourceReader.cs
- MessageParameterAttribute.cs
- CodeMemberProperty.cs
- WindowsGraphics2.cs