We need you! We're working hard on the next version of Developer Fusion -
Let us know what you think we should be up to!
-
Expand
Microsoft.Win32
-
Expand
Microsoft.Win32.SafeHandles
-
Expand
System
-
Expand
System.Runtime.Hosting
-
Expand
System.Runtime.InteropServices
-
Expand
System.Runtime.CompilerServices
-
Expand
System.Collections
-
Expand
System.Collections.Generic
-
Expand
System.Collections.ObjectModel
-
Expand
System.Configuration.Assemblies
-
Expand
System.Diagnostics
-
Expand
System.Diagnostics.CodeAnalysis
-
Expand
System.Diagnostics.SymbolStore
-
Expand
System.Globalization
-
Expand
System.IO
-
Expand
System.IO.IsolatedStorage
-
Expand
System.Reflection
-
Expand
System.Reflection.Cache
-
Expand
System.Reflection.Emit
-
Expand
__ExceptionInfo
-
Expand
__ExceptionInstance
-
Expand
__FixupData
-
Expand
AssemblyBuilder
-
Expand
AssemblyBuilderAccess
-
Expand
AssemblyBuilderData
-
Expand
ConstructorBuilder
-
AddDeclarativeSecurity(SecurityAction, PermissionSet)
-
Attributes()
-
CallingConvention()
-
ConstructorBuilder()
-
ConstructorBuilder(string, MethodAttributes, CallingConventions, Type, Module, TypeBuilder)
-
ConstructorBuilder(string, MethodAttributes, CallingConventions, Type, Type, Type, Module, TypeBuilder)
-
DeclaringType()
-
DefineParameter(int, ParameterAttributes, string)
-
GetCustomAttributes(bool)
-
GetCustomAttributes(Type, bool)
-
GetIDsOfNames(Guid, IntPtr, uint, uint, IntPtr)
-
GetILGenerator()
-
GetILGenerator(int)
-
GetMethodImplementationFlags()
-
GetModule()
-
GetParameters()
-
GetParameterTypes()
-
GetReturnType()
-
GetToken()
-
GetTypeInfo(uint, uint, IntPtr)
-
GetTypeInfoCount(uint)
-
InitLocals()
-
Invoke(BindingFlags, Binder, object, CultureInfo)
-
Invoke(object, BindingFlags, Binder, object, CultureInfo)
-
Invoke(uint, Guid, uint, short, IntPtr, IntPtr, IntPtr, IntPtr)
-
IsDefined(Type, bool)
-
MetadataTokenInternal()
-
MethodHandle()
-
Module()
-
Name()
-
ReflectedType()
-
ReturnType()
-
SetCustomAttribute(ConstructorInfo, byte)
-
SetCustomAttribute(CustomAttributeBuilder)
-
SetImplementationFlags(MethodImplAttributes)
-
SetSymCustomAttribute(string, byte)
-
Signature()
-
ToString()
-
Expand
ConstructorOnTypeBuilderInstantiation
-
Expand
CustAttr
-
Expand
CustomAttributeBuilder
-
Expand
DestroyScout
-
Expand
DynamicILGenerator
-
Expand
DynamicILInfo
-
Expand
DynamicMethod
-
Expand
DynamicResolver
-
Expand
DynamicScope
-
Expand
EmptyCAHolder
-
Expand
Entry
-
Expand
EnumBuilder
-
Expand
EventBuilder
-
Expand
EventToken
-
Expand
FieldBuilder
-
Expand
FieldOnTypeBuilderInstantiation
-
Expand
FieldToken
-
Expand
FlowControl
-
Expand
Format
-
Expand
GenericMethodInfo
-
Expand
GenericTypeParameterBuilder
-
Expand
ILGenerator
-
Expand
Label
-
Expand
LineNumberInfo
-
Expand
LocalBuilder
-
Expand
LocalSymInfo
-
Expand
MethodBuilder
-
Expand
MethodBuilderInstantiation
-
Expand
MethodOnTypeBuilderInstantiation
-
Expand
MethodRental
-
Expand
MethodToken
-
Expand
ModuleBuilder
-
Expand
ModuleBuilderData
-
Expand
OpCode
-
Expand
OpCodes
-
Expand
OpCodeType
-
Expand
OperandType
-
Expand
PackingSize
-
Expand
ParameterBuilder
-
Expand
ParameterToken
-
Expand
PEFileKinds
-
Expand
PropertyBuilder
-
Expand
PropertyToken
-
Expand
REDocument
-
Expand
ResWriterData
-
Expand
RTDynamicMethod
-
Expand
ScopeAction
-
Expand
ScopeTree
-
Expand
SecurityControlFlags
-
Expand
SignatureHelper
-
Expand
SignatureToken
-
Expand
StackBehaviour
-
Expand
StringToken
-
Expand
SymbolMethod
-
Expand
SymbolType
-
Expand
SymCustomAttr
-
Expand
TypeBuilder
-
Expand
TypeBuilderInstantiation
-
Expand
TypeKind
-
Expand
TypeNameBuilder
-
Expand
TypeToken
-
Expand
UnmanagedMarshal
-
Expand
VarArgMethod
-
Expand
System.Resources
-
Expand
System.Runtime
-
Expand
System.Runtime.InteropServices.Expando
-
Expand
System.Runtime.ConstrainedExecution
-
Expand
System.Runtime.Remoting.Activation
-
Expand
System.Runtime.Remoting.Messaging
-
Expand
System.Runtime.Remoting.Channels
-
Expand
System.Runtime.Remoting.Lifetime
-
Expand
System.Runtime.Remoting
-
Expand
System.Runtime.Remoting.Contexts
-
Expand
System.Runtime.Remoting.Proxies
-
Expand
System.Runtime.Remoting.Metadata
-
Expand
System.Runtime.Remoting.Metadata.W3cXsd2001
-
Expand
System.Runtime.Remoting.Services
-
Expand
System.Runtime.Serialization
-
Expand
System.Runtime.Serialization.Formatters
-
Expand
System.Runtime.Serialization.Formatters.Binary
-
Expand
System.Runtime.Versioning
-
Expand
System.Security
-
Expand
System.Security.Cryptography
-
Expand
System.Security.Cryptography.X509Certificates
-
Expand
System.Security.Permissions
-
Expand
System.Security.Policy
-
Expand
System.Security.Principal
-
Expand
System.Security.Util
-
Expand
System.Text
-
Expand
System.Threading
-
Expand
System.Runtime.Remoting.Channels.Http
-
Expand
System.Runtime.Remoting.Channels.Tcp
-
Expand
System.Runtime.Remoting.MetadataServices
-
Expand
System.Runtime.Serialization.Formatters.Soap.Xml
-
Expand
System.Runtime.Serialization.Formatters.Soap
-
Expand
Microsoft.Tools.Caspol
-
Expand
Microsoft.Tools.Build
-
Expand
Microsoft.CSharp
-
Expand
System.CodeDom
-
Expand
System.CodeDom.Compiler
-
Expand
System.Collections.Specialized
-
Expand
System.ComponentModel
-
Expand
System.ComponentModel.Design
-
Expand
System.ComponentModel.Design.Serialization
-
Expand
System.Configuration
-
Expand
System.Web
-
Expand
System.Configuration.Provider
-
Expand
System.Configuration.Internal
-
Expand
System.Internal
-
Expand
System.Windows.Forms
-
Expand
System.Net
-
Expand
System.Net.Sockets
-
Expand
System.Net.NetworkInformation
-
Expand
System.Net.ComImports
-
Expand
System.Net.Security
-
Expand
System.Net.Cache
-
Expand
System.Net.Configuration
-
Expand
System.Text.RegularExpressions
-
Expand
System.Tools
-
Expand
System.IO.Compression
-
Expand
System.IO.Ports
-
Expand
System.Security.AccessControl
-
Expand
System.Xml
-
Expand
System.Xml.XPath.DataBinding
-
Expand
System.Xml.Schema
-
Expand
System.Xml.Serialization
-
Expand
System.Xml.Serialization.Advanced
-
Expand
System.Xml.Serialization.Configuration
-
Expand
System.Xml.XPath
-
Expand
System.Xml.Xsl
-
Expand
System.Xml.Xsl.IlGen
-
Expand
System.Xml.Xsl.Qil
-
Expand
System.Xml.Xsl.Runtime
-
Expand
System.Xml.Xsl.XPath
-
Expand
System.Xml.Xsl.Xslt
-
Expand
System.Xml.Xsl.XsltOld
-
Expand
System.Xml.Xsl.XsltOld.Debugger
-
Expand
Microsoft.JScript
-
Expand
Microsoft.Vsa
-
Expand
Microsoft.JScript.Vsa
- namespace System.Reflection.Emit
- {
- using System;
- using System.Reflection;
- using CultureInfo = System.Globalization.CultureInfo;
- using System.Diagnostics.SymbolStore;
- using System.Security;
- using System.Security.Permissions;
- using System.Runtime.InteropServices;
-
- [HostProtection(MayLeakOnAbort = true)]
- [ClassInterface(ClassInterfaceType.None)]
- [ComDefaultInterface(typeof(_ConstructorBuilder))]
- [System.Runtime.InteropServices.ComVisible(true)]
- public sealed class ConstructorBuilder : ConstructorInfo, _ConstructorBuilder
- {
- #region Private Data Members
- internal MethodBuilder m_methodBuilder;
- internal bool m_ReturnILGen;
- #endregion
-
- #region Constructor
- private ConstructorBuilder()
- {
- }
-
- internal ConstructorBuilder(string name, MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers, Module mod, TypeBuilder type)
- {
- int sigLength;
- byte[] sigBytes;
- MethodToken token;
-
- m_methodBuilder = new MethodBuilder(name, attributes, callingConvention, null, null, null, parameterTypes, requiredCustomModifiers, optionalCustomModifiers, mod,
- type, false);
-
- type.m_listMethods.Add(m_methodBuilder);
-
- sigBytes = m_methodBuilder.GetMethodSignature().InternalGetSignature(out sigLength);
-
- token = m_methodBuilder.GetToken();
- m_ReturnILGen = true;
- }
-
- internal ConstructorBuilder(string name, MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes, Module mod, TypeBuilder type) : this(name, attributes, callingConvention, parameterTypes, null, null, mod, type)
- {
- }
-
- #endregion
-
- #region Internal
- internal override Type[] GetParameterTypes()
- {
- return m_methodBuilder.GetParameterTypes();
- }
-
- #endregion
-
- #region Object Overrides
- public override string ToString()
- {
- return m_methodBuilder.ToString();
- }
-
- #endregion
-
- #region MemberInfo Overrides
- internal override int MetadataTokenInternal {
- get { return m_methodBuilder.MetadataTokenInternal; }
- }
-
- public override Module Module {
- get { return m_methodBuilder.Module; }
- }
-
- public override Type ReflectedType {
- get { return m_methodBuilder.ReflectedType; }
- }
-
- public override Type DeclaringType {
- get { return m_methodBuilder.DeclaringType; }
- }
-
- public override string Name {
- get { return m_methodBuilder.Name; }
- }
-
- #endregion
-
- #region MethodBase Overrides
- public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
- {
-
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
- }
-
- public override ParameterInfo[] GetParameters()
- {
- if (!m_methodBuilder.m_bIsBaked)
- throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_TypeNotCreated"));
-
- Type rti = m_methodBuilder.GetTypeBuilder().m_runtimeType;
- ConstructorInfo rci = rti.GetConstructor(m_methodBuilder.m_parameterTypes);
-
- return rci.GetParameters();
- }
-
- public override MethodAttributes Attributes {
- get { return m_methodBuilder.Attributes; }
- }
-
- public override MethodImplAttributes GetMethodImplementationFlags()
- {
- return m_methodBuilder.GetMethodImplementationFlags();
- }
-
- public override RuntimeMethodHandle MethodHandle {
- get { return m_methodBuilder.MethodHandle; }
- }
-
- #endregion
-
- #region ConstructorInfo Overrides
- public override object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
- {
-
- throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
- }
-
- #endregion
-
- #region ICustomAttributeProvider Implementation
- public override object[] GetCustomAttributes(bool inherit)
- {
- return m_methodBuilder.GetCustomAttributes(inherit);
- }
-
- public override object[] GetCustomAttributes(Type attributeType, bool inherit)
- {
- return m_methodBuilder.GetCustomAttributes(attributeType, inherit);
- }
-
- public override bool IsDefined(Type attributeType, bool inherit)
- {
- return m_methodBuilder.IsDefined(attributeType, inherit);
- }
-
- #endregion
-
- #region Public Members
- public MethodToken GetToken()
- {
- return m_methodBuilder.GetToken();
- }
-
- public ParameterBuilder DefineParameter(int iSequence, ParameterAttributes attributes, string strParamName)
- {
-
- attributes = attributes & ~ParameterAttributes.ReservedMask;
- return m_methodBuilder.DefineParameter(iSequence, attributes, strParamName);
- }
-
- public void SetSymCustomAttribute(string name, byte[] data)
- {
- m_methodBuilder.SetSymCustomAttribute(name, data);
- }
-
- public ILGenerator GetILGenerator()
- {
- if (!m_ReturnILGen)
- throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DefaultConstructorILGen"));
-
- return m_methodBuilder.GetILGenerator();
- }
-
- public ILGenerator GetILGenerator(int streamSize)
- {
- if (!m_ReturnILGen)
- throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DefaultConstructorILGen"));
-
- return m_methodBuilder.GetILGenerator(streamSize);
- }
-
- public void AddDeclarativeSecurity(SecurityAction action, PermissionSet pset)
- {
- if (pset == null)
- throw new ArgumentNullException("pset");
-
- if (!Enum.IsDefined(typeof(SecurityAction), action) || action == SecurityAction.RequestMinimum || action == SecurityAction.RequestOptional || action == SecurityAction.RequestRefuse)
- throw new ArgumentOutOfRangeException("action");
-
-
- if (m_methodBuilder.IsTypeCreated())
- throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TypeHasBeenCreated"));
-
-
- byte[] blob = pset.EncodeXml();
-
-
- TypeBuilder.InternalAddDeclarativeSecurity(GetModule(), GetToken().Token, action, blob);
- }
-
- public override CallingConventions CallingConvention {
- get {
- if (DeclaringType.IsGenericType)
- return CallingConventions.HasThis;
-
- return CallingConventions.Standard;
- }
- }
-
- public Module GetModule()
- {
- return m_methodBuilder.GetModule();
- }
-
-
- public Type ReturnType {
- get { return m_methodBuilder.GetReturnType(); }
- }
-
- internal override Type GetReturnType()
- {
- return m_methodBuilder.GetReturnType();
- }
-
- public string Signature {
- get { return m_methodBuilder.Signature; }
- }
-
- [System.Runtime.InteropServices.ComVisible(true)]
- public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
- {
- m_methodBuilder.SetCustomAttribute(con, binaryAttribute);
- }
-
- public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
- {
- m_methodBuilder.SetCustomAttribute(customBuilder);
- }
-
- public void SetImplementationFlags(MethodImplAttributes attributes)
- {
- m_methodBuilder.SetImplementationFlags(attributes);
- }
-
- public bool InitLocals {
- get { return m_methodBuilder.InitLocals; }
- set { m_methodBuilder.InitLocals = value; }
- }
-
- #endregion
-
- void _ConstructorBuilder.GetTypeInfoCount(out uint pcTInfo)
- {
- throw new NotImplementedException();
- }
-
- void _ConstructorBuilder.GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
- {
- throw new NotImplementedException();
- }
-
- void _ConstructorBuilder.GetIDsOfNames( [In()]
- ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
- {
- throw new NotImplementedException();
- }
-
- void _ConstructorBuilder.Invoke(uint dispIdMember, [In()]
- ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
- {
- throw new NotImplementedException();
- }
- }
- }