TypeBuilder 클래스

정의

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

public ref class TypeBuilder sealed : Type
public ref class TypeBuilder sealed : System::Reflection::TypeInfo
public ref class TypeBuilder abstract : System::Reflection::TypeInfo
public ref class TypeBuilder sealed : Type, System::Runtime::InteropServices::_TypeBuilder
public ref class TypeBuilder sealed : System::Reflection::TypeInfo, System::Runtime::InteropServices::_TypeBuilder
public sealed class TypeBuilder : Type
public sealed class TypeBuilder : System.Reflection.TypeInfo
public abstract class TypeBuilder : System.Reflection.TypeInfo
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public sealed class TypeBuilder : Type, System.Runtime.InteropServices._TypeBuilder
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class TypeBuilder : Type, System.Runtime.InteropServices._TypeBuilder
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class TypeBuilder : System.Reflection.TypeInfo, System.Runtime.InteropServices._TypeBuilder
type TypeBuilder = class
    inherit Type
type TypeBuilder = class
    inherit TypeInfo
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type TypeBuilder = class
    inherit Type
    interface _TypeBuilder
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TypeBuilder = class
    inherit Type
    interface _TypeBuilder
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TypeBuilder = class
    inherit TypeInfo
    interface _TypeBuilder
Public NotInheritable Class TypeBuilder
Inherits Type
Public NotInheritable Class TypeBuilder
Inherits TypeInfo
Public MustInherit Class TypeBuilder
Inherits TypeInfo
Public NotInheritable Class TypeBuilder
Inherits Type
Implements _TypeBuilder
Public NotInheritable Class TypeBuilder
Inherits TypeInfo
Implements _TypeBuilder
상속
TypeBuilder
상속
TypeBuilder
상속
특성
구현

예제

다음 코드 예제에서는 동적 어셈블리를 정의하고 사용하는 방법을 보여줍니다. 예제 어셈블리에는 프라이빗 필드가 있는 형식, MyDynamicType프라이빗 필드를 가져오고 설정하는 속성, 프라이빗 필드를 초기화하는 생성자 및 사용자가 제공한 숫자를 개인 필드 값으로 곱하고 결과를 반환하는 메서드가 포함됩니다.

using namespace System;
using namespace System::Reflection;
using namespace System::Reflection::Emit;

void main()
{
    // This code creates an assembly that contains one type,
    // named "MyDynamicType", that has a private field, a property
    // that gets and sets the private field, constructors that
    // initialize the private field, and a method that multiplies
    // a user-supplied number by the private field value and returns
    // the result. In Visual C++ the type might look like this:
    /*
      public ref class MyDynamicType
      {
      private:
          int m_number;

      public:
          MyDynamicType() : m_number(42) {};
          MyDynamicType(int initNumber) : m_number(initNumber) {};
      
          property int Number
          {
              int get() { return m_number; }
              void set(int value) { m_number = value; }
          }

          int MyMethod(int multiplier)
          {
              return m_number * multiplier;
          }
      };
    */
      
    AssemblyName^ aName = gcnew AssemblyName("DynamicAssemblyExample");
    AssemblyBuilder^ ab = 
        AssemblyBuilder::DefineDynamicAssembly(
            aName, 
            AssemblyBuilderAccess::Run);

    // The module name is usually the same as the assembly name
    ModuleBuilder^ mb = 
        ab->DefineDynamicModule(aName->Name);
      
    TypeBuilder^ tb = mb->DefineType(
        "MyDynamicType", 
         TypeAttributes::Public);

    // Add a private field of type int (Int32).
    FieldBuilder^ fbNumber = tb->DefineField(
        "m_number", 
        int::typeid, 
        FieldAttributes::Private);

    // Define a constructor that takes an integer argument and 
    // stores it in the private field. 
    array<Type^>^ parameterTypes = { int::typeid };
    ConstructorBuilder^ ctor1 = tb->DefineConstructor(
        MethodAttributes::Public, 
        CallingConventions::Standard, 
        parameterTypes);

    ILGenerator^ ctor1IL = ctor1->GetILGenerator();
    // For a constructor, argument zero is a reference to the new
    // instance. Push it on the stack before calling the base
    // class constructor. Specify the default constructor of the 
    // base class (System::Object) by passing an empty array of 
    // types (Type::EmptyTypes) to GetConstructor.
    ctor1IL->Emit(OpCodes::Ldarg_0);
    ctor1IL->Emit(OpCodes::Call, 
        Object::typeid->GetConstructor(Type::EmptyTypes));
    // Push the instance on the stack before pushing the argument
    // that is to be assigned to the private field m_number.
    ctor1IL->Emit(OpCodes::Ldarg_0);
    ctor1IL->Emit(OpCodes::Ldarg_1);
    ctor1IL->Emit(OpCodes::Stfld, fbNumber);
    ctor1IL->Emit(OpCodes::Ret);

    // Define a default constructor that supplies a default value
    // for the private field. For parameter types, pass the empty
    // array of types or pass nullptr.
    ConstructorBuilder^ ctor0 = tb->DefineConstructor(
        MethodAttributes::Public, 
        CallingConventions::Standard, 
        Type::EmptyTypes);

    ILGenerator^ ctor0IL = ctor0->GetILGenerator();
    ctor0IL->Emit(OpCodes::Ldarg_0);
    ctor0IL->Emit(OpCodes::Call, 
        Object::typeid->GetConstructor(Type::EmptyTypes));
    // For a constructor, argument zero is a reference to the new
    // instance. Push it on the stack before pushing the default
    // value on the stack.
    ctor0IL->Emit(OpCodes::Ldarg_0);
    ctor0IL->Emit(OpCodes::Ldc_I4_S, 42);
    ctor0IL->Emit(OpCodes::Stfld, fbNumber);
    ctor0IL->Emit(OpCodes::Ret);

    // Define a property named Number that gets and sets the private 
    // field.
    //
    // The last argument of DefineProperty is nullptr, because the
    // property has no parameters. (If you don't specify nullptr, you must
    // specify an array of Type objects. For a parameterless property,
    // use the built-in array with no elements: Type::EmptyTypes)
    PropertyBuilder^ pbNumber = tb->DefineProperty(
        "Number", 
        PropertyAttributes::HasDefault, 
        int::typeid, 
        nullptr);
      
    // The property "set" and property "get" methods require a special
    // set of attributes.
    MethodAttributes getSetAttr = MethodAttributes::Public | 
        MethodAttributes::SpecialName | MethodAttributes::HideBySig;

    // Define the "get" accessor method for Number. The method returns
    // an integer and has no arguments. (Note that nullptr could be 
    // used instead of Types::EmptyTypes)
    MethodBuilder^ mbNumberGetAccessor = tb->DefineMethod(
        "get_Number", 
        getSetAttr, 
        int::typeid, 
        Type::EmptyTypes);
      
    ILGenerator^ numberGetIL = mbNumberGetAccessor->GetILGenerator();
    // For an instance property, argument zero is the instance. Load the 
    // instance, then load the private field and return, leaving the
    // field value on the stack.
    numberGetIL->Emit(OpCodes::Ldarg_0);
    numberGetIL->Emit(OpCodes::Ldfld, fbNumber);
    numberGetIL->Emit(OpCodes::Ret);
    
    // Define the "set" accessor method for Number, which has no return
    // type and takes one argument of type int (Int32).
    MethodBuilder^ mbNumberSetAccessor = tb->DefineMethod(
        "set_Number", 
        getSetAttr, 
        nullptr, 
        gcnew array<Type^> { int::typeid });
      
    ILGenerator^ numberSetIL = mbNumberSetAccessor->GetILGenerator();
    // Load the instance and then the numeric argument, then store the
    // argument in the field.
    numberSetIL->Emit(OpCodes::Ldarg_0);
    numberSetIL->Emit(OpCodes::Ldarg_1);
    numberSetIL->Emit(OpCodes::Stfld, fbNumber);
    numberSetIL->Emit(OpCodes::Ret);
      
    // Last, map the "get" and "set" accessor methods to the 
    // PropertyBuilder. The property is now complete. 
    pbNumber->SetGetMethod(mbNumberGetAccessor);
    pbNumber->SetSetMethod(mbNumberSetAccessor);

    // Define a method that accepts an integer argument and returns
    // the product of that integer and the private field m_number. This
    // time, the array of parameter types is created on the fly.
    MethodBuilder^ meth = tb->DefineMethod(
        "MyMethod", 
        MethodAttributes::Public, 
        int::typeid, 
        gcnew array<Type^> { int::typeid });

    ILGenerator^ methIL = meth->GetILGenerator();
    // To retrieve the private instance field, load the instance it
    // belongs to (argument zero). After loading the field, load the 
    // argument one and then multiply. Return from the method with 
    // the return value (the product of the two numbers) on the 
    // execution stack.
    methIL->Emit(OpCodes::Ldarg_0);
    methIL->Emit(OpCodes::Ldfld, fbNumber);
    methIL->Emit(OpCodes::Ldarg_1);
    methIL->Emit(OpCodes::Mul);
    methIL->Emit(OpCodes::Ret);

    // Finish the type->
    Type^ t = tb->CreateType();

    // Because AssemblyBuilderAccess includes Run, the code can be
    // executed immediately. Start by getting reflection objects for
    // the method and the property.
    MethodInfo^ mi = t->GetMethod("MyMethod");
    PropertyInfo^ pi = t->GetProperty("Number");
  
    // Create an instance of MyDynamicType using the default 
    // constructor. 
    Object^ o1 = Activator::CreateInstance(t);

    // Display the value of the property, then change it to 127 and 
    // display it again. Use nullptr to indicate that the property
    // has no index.
    Console::WriteLine("o1->Number: {0}", pi->GetValue(o1, nullptr));
    pi->SetValue(o1, 127, nullptr);
    Console::WriteLine("o1->Number: {0}", pi->GetValue(o1, nullptr));

    // Call MyMethod, passing 22, and display the return value, 22
    // times 127. Arguments must be passed as an array, even when
    // there is only one.
    array<Object^>^ arguments = { 22 };
    Console::WriteLine("o1->MyMethod(22): {0}", 
        mi->Invoke(o1, arguments));

    // Create an instance of MyDynamicType using the constructor
    // that specifies m_Number. The constructor is identified by
    // matching the types in the argument array. In this case, 
    // the argument array is created on the fly. Display the 
    // property value.
    Object^ o2 = Activator::CreateInstance(t, 
        gcnew array<Object^> { 5280 });
    Console::WriteLine("o2->Number: {0}", pi->GetValue(o2, nullptr));
};

/* This code produces the following output:

o1->Number: 42
o1->Number: 127
o1->MyMethod(22): 2794
o2->Number: 5280
 */
using System;
using System.Reflection;
using System.Reflection.Emit;

class DemoAssemblyBuilder
{
    public static void Main()
    {
        // This code creates an assembly that contains one type,
        // named "MyDynamicType", that has a private field, a property
        // that gets and sets the private field, constructors that
        // initialize the private field, and a method that multiplies
        // a user-supplied number by the private field value and returns
        // the result. In C# the type might look like this:
        /*
        public class MyDynamicType
        {
            private int m_number;

            public MyDynamicType() : this(42) {}
            public MyDynamicType(int initNumber)
            {
                m_number = initNumber;
            }

            public int Number
            {
                get { return m_number; }
                set { m_number = value; }
            }

            public int MyMethod(int multiplier)
            {
                return m_number * multiplier;
            }
        }
        */

        var aName = new AssemblyName("DynamicAssemblyExample");
        AssemblyBuilder ab =
            AssemblyBuilder.DefineDynamicAssembly(
                aName,
                AssemblyBuilderAccess.Run);

        // The module name is usually the same as the assembly name.
        ModuleBuilder mb = ab.DefineDynamicModule(aName.Name ?? "DynamicAssemblyExample");

        TypeBuilder tb = mb.DefineType(
            "MyDynamicType",
             TypeAttributes.Public);

        // Add a private field of type int (Int32).
        FieldBuilder fbNumber = tb.DefineField(
            "m_number",
            typeof(int),
            FieldAttributes.Private);

        // Define a constructor that takes an integer argument and
        // stores it in the private field.
        Type[] parameterTypes = { typeof(int) };
        ConstructorBuilder ctor1 = tb.DefineConstructor(
            MethodAttributes.Public,
            CallingConventions.Standard,
            parameterTypes);

        ILGenerator ctor1IL = ctor1.GetILGenerator();
        // For a constructor, argument zero is a reference to the new
        // instance. Push it on the stack before calling the base
        // class constructor. Specify the default constructor of the
        // base class (System.Object) by passing an empty array of
        // types (Type.EmptyTypes) to GetConstructor.
        ctor1IL.Emit(OpCodes.Ldarg_0);
        ConstructorInfo? ci = typeof(object).GetConstructor(Type.EmptyTypes);
        ctor1IL.Emit(OpCodes.Call, ci!);
        // Push the instance on the stack before pushing the argument
        // that is to be assigned to the private field m_number.
        ctor1IL.Emit(OpCodes.Ldarg_0);
        ctor1IL.Emit(OpCodes.Ldarg_1);
        ctor1IL.Emit(OpCodes.Stfld, fbNumber);
        ctor1IL.Emit(OpCodes.Ret);

        // Define a default constructor that supplies a default value
        // for the private field. For parameter types, pass the empty
        // array of types or pass null.
        ConstructorBuilder ctor0 = tb.DefineConstructor(
            MethodAttributes.Public,
            CallingConventions.Standard,
            Type.EmptyTypes);

        ILGenerator ctor0IL = ctor0.GetILGenerator();
        // For a constructor, argument zero is a reference to the new
        // instance. Push it on the stack before pushing the default
        // value on the stack, then call constructor ctor1.
        ctor0IL.Emit(OpCodes.Ldarg_0);
        ctor0IL.Emit(OpCodes.Ldc_I4_S, 42);
        ctor0IL.Emit(OpCodes.Call, ctor1);
        ctor0IL.Emit(OpCodes.Ret);

        // Define a property named Number that gets and sets the private
        // field.
        //
        // The last argument of DefineProperty is null, because the
        // property has no parameters. (If you don't specify null, you must
        // specify an array of Type objects. For a parameterless property,
        // use the built-in array with no elements: Type.EmptyTypes)
        PropertyBuilder pbNumber = tb.DefineProperty(
            "Number",
            PropertyAttributes.HasDefault,
            typeof(int),
            null);

        // The property "set" and property "get" methods require a special
        // set of attributes.
        MethodAttributes getSetAttr = MethodAttributes.Public |
            MethodAttributes.SpecialName | MethodAttributes.HideBySig;

        // Define the "get" accessor method for Number. The method returns
        // an integer and has no arguments. (Note that null could be
        // used instead of Types.EmptyTypes)
        MethodBuilder mbNumberGetAccessor = tb.DefineMethod(
            "get_Number",
            getSetAttr,
            typeof(int),
            Type.EmptyTypes);

        ILGenerator numberGetIL = mbNumberGetAccessor.GetILGenerator();
        // For an instance property, argument zero is the instance. Load the
        // instance, then load the private field and return, leaving the
        // field value on the stack.
        numberGetIL.Emit(OpCodes.Ldarg_0);
        numberGetIL.Emit(OpCodes.Ldfld, fbNumber);
        numberGetIL.Emit(OpCodes.Ret);

        // Define the "set" accessor method for Number, which has no return
        // type and takes one argument of type int (Int32).
        MethodBuilder mbNumberSetAccessor = tb.DefineMethod(
            "set_Number",
            getSetAttr,
            null,
            new Type[] { typeof(int) });

        ILGenerator numberSetIL = mbNumberSetAccessor.GetILGenerator();
        // Load the instance and then the numeric argument, then store the
        // argument in the field.
        numberSetIL.Emit(OpCodes.Ldarg_0);
        numberSetIL.Emit(OpCodes.Ldarg_1);
        numberSetIL.Emit(OpCodes.Stfld, fbNumber);
        numberSetIL.Emit(OpCodes.Ret);

        // Last, map the "get" and "set" accessor methods to the
        // PropertyBuilder. The property is now complete.
        pbNumber.SetGetMethod(mbNumberGetAccessor);
        pbNumber.SetSetMethod(mbNumberSetAccessor);

        // Define a method that accepts an integer argument and returns
        // the product of that integer and the private field m_number. This
        // time, the array of parameter types is created on the fly.
        MethodBuilder meth = tb.DefineMethod(
            "MyMethod",
            MethodAttributes.Public,
            typeof(int),
            new Type[] { typeof(int) });

        ILGenerator methIL = meth.GetILGenerator();
        // To retrieve the private instance field, load the instance it
        // belongs to (argument zero). After loading the field, load the
        // argument one and then multiply. Return from the method with
        // the return value (the product of the two numbers) on the
        // execution stack.
        methIL.Emit(OpCodes.Ldarg_0);
        methIL.Emit(OpCodes.Ldfld, fbNumber);
        methIL.Emit(OpCodes.Ldarg_1);
        methIL.Emit(OpCodes.Mul);
        methIL.Emit(OpCodes.Ret);

        // Finish the type.
        Type? t = tb.CreateType();

        // Because AssemblyBuilderAccess includes Run, the code can be
        // executed immediately. Start by getting reflection objects for
        // the method and the property.
        MethodInfo? mi = t?.GetMethod("MyMethod");
        PropertyInfo? pi = t?.GetProperty("Number");

        // Create an instance of MyDynamicType using the default
        // constructor.
        object? o1 = null;
        if (t is not null)
            o1 = Activator.CreateInstance(t);

        // Display the value of the property, then change it to 127 and
        // display it again. Use null to indicate that the property
        // has no index.
        Console.WriteLine("o1.Number: {0}", pi?.GetValue(o1, null));
        pi?.SetValue(o1, 127, null);
        Console.WriteLine("o1.Number: {0}", pi?.GetValue(o1, null));

        // Call MyMethod, passing 22, and display the return value, 22
        // times 127. Arguments must be passed as an array, even when
        // there is only one.
        object[] arguments = { 22 };
        Console.WriteLine("o1.MyMethod(22): {0}",
            mi?.Invoke(o1, arguments));

        // Create an instance of MyDynamicType using the constructor
        // that specifies m_Number. The constructor is identified by
        // matching the types in the argument array. In this case,
        // the argument array is created on the fly. Display the
        // property value.
        object? o2 = null;
        if (t is not null)
            Activator.CreateInstance(t, new object[] { 5280 });
        Console.WriteLine("o2.Number: {0}", pi?.GetValue(o2, null));
    }
}

/* This code produces the following output:

o1.Number: 42
o1.Number: 127
o1.MyMethod(22): 2794
o2.Number: 5280
 */
Imports System.Reflection
Imports System.Reflection.Emit

Class DemoAssemblyBuilder

    Public Shared Sub Main()

        ' This code creates an assembly that contains one type,
        ' named "MyDynamicType", that has a private field, a property
        ' that gets and sets the private field, constructors that
        ' initialize the private field, and a method that multiplies
        ' a user-supplied number by the private field value and returns
        ' the result. The code might look like this in Visual Basic:
        '
        'Public Class MyDynamicType
        '    Private m_number As Integer
        '
        '    Public Sub New()
        '        Me.New(42)
        '    End Sub
        '
        '    Public Sub New(ByVal initNumber As Integer)
        '        m_number = initNumber
        '    End Sub
        '
        '    Public Property Number As Integer
        '        Get
        '            Return m_number
        '        End Get
        '        Set
        '            m_Number = Value
        '        End Set
        '    End Property
        '
        '    Public Function MyMethod(ByVal multiplier As Integer) As Integer
        '        Return m_Number * multiplier
        '    End Function
        'End Class
      
        Dim aName As New AssemblyName("DynamicAssemblyExample")
        Dim ab As AssemblyBuilder = _
            AssemblyBuilder.DefineDynamicAssembly( _
                aName, _
                AssemblyBuilderAccess.Run)

        ' The module name is usually the same as the assembly name.
        Dim mb As ModuleBuilder = ab.DefineDynamicModule( _
            aName.Name)
      
        Dim tb As TypeBuilder = _
            mb.DefineType("MyDynamicType", TypeAttributes.Public)

        ' Add a private field of type Integer (Int32).
        Dim fbNumber As FieldBuilder = tb.DefineField( _
            "m_number", _
            GetType(Integer), _
            FieldAttributes.Private)

        ' Define a constructor that takes an integer argument and 
        ' stores it in the private field. 
        Dim parameterTypes() As Type = { GetType(Integer) }
        Dim ctor1 As ConstructorBuilder = _
            tb.DefineConstructor( _
                MethodAttributes.Public, _
                CallingConventions.Standard, _
                parameterTypes)

        Dim ctor1IL As ILGenerator = ctor1.GetILGenerator()
        ' For a constructor, argument zero is a reference to the new
        ' instance. Push it on the stack before calling the base
        ' class constructor. Specify the default constructor of the 
        ' base class (System.Object) by passing an empty array of 
        ' types (Type.EmptyTypes) to GetConstructor.
        ctor1IL.Emit(OpCodes.Ldarg_0)
        ctor1IL.Emit(OpCodes.Call, _
            GetType(Object).GetConstructor(Type.EmptyTypes))
        ' Push the instance on the stack before pushing the argument
        ' that is to be assigned to the private field m_number.
        ctor1IL.Emit(OpCodes.Ldarg_0)
        ctor1IL.Emit(OpCodes.Ldarg_1)
        ctor1IL.Emit(OpCodes.Stfld, fbNumber)
        ctor1IL.Emit(OpCodes.Ret)

        ' Define a default constructor that supplies a default value
        ' for the private field. For parameter types, pass the empty
        ' array of types or pass Nothing.
        Dim ctor0 As ConstructorBuilder = tb.DefineConstructor( _
            MethodAttributes.Public, _
            CallingConventions.Standard, _
            Type.EmptyTypes)

        Dim ctor0IL As ILGenerator = ctor0.GetILGenerator()
        ' For a constructor, argument zero is a reference to the new
        ' instance. Push it on the stack before pushing the default
        ' value on the stack, then call constructor ctor1.
        ctor0IL.Emit(OpCodes.Ldarg_0)
        ctor0IL.Emit(OpCodes.Ldc_I4_S, 42)
        ctor0IL.Emit(OpCodes.Call, ctor1)
        ctor0IL.Emit(OpCodes.Ret)

        ' Define a property named Number that gets and sets the private 
        ' field.
        '
        ' The last argument of DefineProperty is Nothing, because the
        ' property has no parameters. (If you don't specify Nothing, you must
        ' specify an array of Type objects. For a parameterless property,
        ' use the built-in array with no elements: Type.EmptyTypes)
        Dim pbNumber As PropertyBuilder = tb.DefineProperty( _
            "Number", _
            PropertyAttributes.HasDefault, _
            GetType(Integer), _
            Nothing)
      
        ' The property Set and property Get methods require a special
        ' set of attributes.
        Dim getSetAttr As MethodAttributes = _
            MethodAttributes.Public Or MethodAttributes.SpecialName _
                Or MethodAttributes.HideBySig

        ' Define the "get" accessor method for Number. The method returns
        ' an integer and has no arguments. (Note that Nothing could be 
        ' used instead of Types.EmptyTypes)
        Dim mbNumberGetAccessor As MethodBuilder = tb.DefineMethod( _
            "get_Number", _
            getSetAttr, _
            GetType(Integer), _
            Type.EmptyTypes)
      
        Dim numberGetIL As ILGenerator = mbNumberGetAccessor.GetILGenerator()
        ' For an instance property, argument zero is the instance. Load the 
        ' instance, then load the private field and return, leaving the
        ' field value on the stack.
        numberGetIL.Emit(OpCodes.Ldarg_0)
        numberGetIL.Emit(OpCodes.Ldfld, fbNumber)
        numberGetIL.Emit(OpCodes.Ret)
        
        ' Define the "set" accessor method for Number, which has no return
        ' type and takes one argument of type Integer (Int32).
        Dim mbNumberSetAccessor As MethodBuilder = _
            tb.DefineMethod( _
                "set_Number", _
                getSetAttr, _
                Nothing, _
                New Type() { GetType(Integer) })
      
        Dim numberSetIL As ILGenerator = mbNumberSetAccessor.GetILGenerator()
        ' Load the instance and then the numeric argument, then store the
        ' argument in the field.
        numberSetIL.Emit(OpCodes.Ldarg_0)
        numberSetIL.Emit(OpCodes.Ldarg_1)
        numberSetIL.Emit(OpCodes.Stfld, fbNumber)
        numberSetIL.Emit(OpCodes.Ret)
      
        ' Last, map the "get" and "set" accessor methods to the 
        ' PropertyBuilder. The property is now complete. 
        pbNumber.SetGetMethod(mbNumberGetAccessor)
        pbNumber.SetSetMethod(mbNumberSetAccessor)

        ' Define a method that accepts an integer argument and returns
        ' the product of that integer and the private field m_number. This
        ' time, the array of parameter types is created on the fly.
        Dim meth As MethodBuilder = tb.DefineMethod( _
            "MyMethod", _
            MethodAttributes.Public, _
            GetType(Integer), _
            New Type() { GetType(Integer) })

        Dim methIL As ILGenerator = meth.GetILGenerator()
        ' To retrieve the private instance field, load the instance it
        ' belongs to (argument zero). After loading the field, load the 
        ' argument one and then multiply. Return from the method with 
        ' the return value (the product of the two numbers) on the 
        ' execution stack.
        methIL.Emit(OpCodes.Ldarg_0)
        methIL.Emit(OpCodes.Ldfld, fbNumber)
        methIL.Emit(OpCodes.Ldarg_1)
        methIL.Emit(OpCodes.Mul)
        methIL.Emit(OpCodes.Ret)

        ' Finish the type.
        Dim t As Type = tb.CreateType()

        ' Because AssemblyBuilderAccess includes Run, the code can be
        ' executed immediately. Start by getting reflection objects for
        ' the method and the property.
        Dim mi As MethodInfo = t.GetMethod("MyMethod")
        Dim pi As PropertyInfo = t.GetProperty("Number")
  
        ' Create an instance of MyDynamicType using the default 
        ' constructor. 
        Dim o1 As Object = Activator.CreateInstance(t)

        ' Display the value of the property, then change it to 127 and 
        ' display it again. Use Nothing to indicate that the property
        ' has no index.
        Console.WriteLine("o1.Number: {0}", pi.GetValue(o1, Nothing))
        pi.SetValue(o1, 127, Nothing)
        Console.WriteLine("o1.Number: {0}", pi.GetValue(o1, Nothing))

        ' Call MyMethod, passing 22, and display the return value, 22
        ' times 127. Arguments must be passed as an array, even when
        ' there is only one.
        Dim arguments() As Object = { 22 }
        Console.WriteLine("o1.MyMethod(22): {0}", _
            mi.Invoke(o1, arguments))

        ' Create an instance of MyDynamicType using the constructor
        ' that specifies m_Number. The constructor is identified by
        ' matching the types in the argument array. In this case, 
        ' the argument array is created on the fly. Display the 
        ' property value.
        Dim o2 As Object = Activator.CreateInstance(t, _
            New Object() { 5280 })
        Console.WriteLine("o2.Number: {0}", pi.GetValue(o2, Nothing))
      
    End Sub  
End Class

' This code produces the following output:
'
'o1.Number: 42
'o1.Number: 127
'o1.MyMethod(22): 2794
'o2.Number: 5280

다음 코드 샘플에서는 를 사용하여 TypeBuilder형식을 동적으로 빌드하는 방법을 보여 줍니다.

using namespace System;
using namespace System::Threading;
using namespace System::Reflection;
using namespace System::Reflection::Emit;
Type^ DynamicDotProductGen()
{
   Type^ ivType = nullptr;
   array<Type^>^temp0 = {int::typeid,int::typeid,int::typeid};
   array<Type^>^ctorParams = temp0;
   AppDomain^ myDomain = Thread::GetDomain();
   AssemblyName^ myAsmName = gcnew AssemblyName;
   myAsmName->Name = "IntVectorAsm";
   AssemblyBuilder^ myAsmBuilder = myDomain->DefineDynamicAssembly( myAsmName, AssemblyBuilderAccess::RunAndSave );
   ModuleBuilder^ IntVectorModule = myAsmBuilder->DefineDynamicModule( "IntVectorModule", "Vector.dll" );
   TypeBuilder^ ivTypeBld = IntVectorModule->DefineType( "IntVector", TypeAttributes::Public );
   FieldBuilder^ xField = ivTypeBld->DefineField( "x", int::typeid, FieldAttributes::Private );
   FieldBuilder^ yField = ivTypeBld->DefineField( "y", int::typeid, FieldAttributes::Private );
   FieldBuilder^ zField = ivTypeBld->DefineField( "z", int::typeid, FieldAttributes::Private );
   Type^ objType = Type::GetType( "System.Object" );
   ConstructorInfo^ objCtor = objType->GetConstructor( gcnew array<Type^>(0) );
   ConstructorBuilder^ ivCtor = ivTypeBld->DefineConstructor( MethodAttributes::Public, CallingConventions::Standard, ctorParams );
   ILGenerator^ ctorIL = ivCtor->GetILGenerator();
   ctorIL->Emit( OpCodes::Ldarg_0 );
   ctorIL->Emit( OpCodes::Call, objCtor );
   ctorIL->Emit( OpCodes::Ldarg_0 );
   ctorIL->Emit( OpCodes::Ldarg_1 );
   ctorIL->Emit( OpCodes::Stfld, xField );
   ctorIL->Emit( OpCodes::Ldarg_0 );
   ctorIL->Emit( OpCodes::Ldarg_2 );
   ctorIL->Emit( OpCodes::Stfld, yField );
   ctorIL->Emit( OpCodes::Ldarg_0 );
   ctorIL->Emit( OpCodes::Ldarg_3 );
   ctorIL->Emit( OpCodes::Stfld, zField );
   ctorIL->Emit( OpCodes::Ret );
   
   // This method will find the dot product of the stored vector
   // with another.
   array<Type^>^temp1 = {ivTypeBld};
   array<Type^>^dpParams = temp1;
   
   // Here, you create a MethodBuilder containing the
   // name, the attributes (public, static, private, and so on),
   // the return type (int, in this case), and a array of Type
   // indicating the type of each parameter. Since the sole parameter
   // is a IntVector, the very class you're creating, you will
   // pass in the TypeBuilder (which is derived from Type) instead of
   // a Type object for IntVector, avoiding an exception.
   // -- This method would be declared in C# as:
   //    public int DotProduct(IntVector aVector)
   MethodBuilder^ dotProductMthd = ivTypeBld->DefineMethod( "DotProduct", MethodAttributes::Public, int::typeid, dpParams );
   
   // A ILGenerator can now be spawned, attached to the MethodBuilder.
   ILGenerator^ mthdIL = dotProductMthd->GetILGenerator();
   
   // Here's the body of our function, in MSIL form. We're going to find the
   // "dot product" of the current vector instance with the passed vector
   // instance. For reference purposes, the equation is:
   // (x1 * x2) + (y1 * y2) + (z1 * z2) = the dot product
   // First, you'll load the reference to the current instance "this"
   // stored in argument 0 (ldarg.0) onto the stack. Ldfld, the subsequent
   // instruction, will pop the reference off the stack and look up the
   // field "x", specified by the FieldInfo token "xField".
   mthdIL->Emit( OpCodes::Ldarg_0 );
   mthdIL->Emit( OpCodes::Ldfld, xField );
   
   // That completed, the value stored at field "x" is now atop the stack.
   // Now, you'll do the same for the Object reference we passed as a
   // parameter, stored in argument 1 (ldarg.1). After Ldfld executed,
   // you'll have the value stored in field "x" for the passed instance
   // atop the stack.
   mthdIL->Emit( OpCodes::Ldarg_1 );
   mthdIL->Emit( OpCodes::Ldfld, xField );
   
   // There will now be two values atop the stack - the "x" value for the
   // current vector instance, and the "x" value for the passed instance.
   // You'll now multiply them, and push the result onto the evaluation stack.
   mthdIL->Emit( OpCodes::Mul_Ovf_Un );
   
   // Now, repeat this for the "y" fields of both vectors.
   mthdIL->Emit( OpCodes::Ldarg_0 );
   mthdIL->Emit( OpCodes::Ldfld, yField );
   mthdIL->Emit( OpCodes::Ldarg_1 );
   mthdIL->Emit( OpCodes::Ldfld, yField );
   mthdIL->Emit( OpCodes::Mul_Ovf_Un );
   
   // At this time, the results of both multiplications should be atop
   // the stack. You'll now add them and push the result onto the stack.
   mthdIL->Emit( OpCodes::Add_Ovf_Un );
   
   // Multiply both "z" field and push the result onto the stack.
   mthdIL->Emit( OpCodes::Ldarg_0 );
   mthdIL->Emit( OpCodes::Ldfld, zField );
   mthdIL->Emit( OpCodes::Ldarg_1 );
   mthdIL->Emit( OpCodes::Ldfld, zField );
   mthdIL->Emit( OpCodes::Mul_Ovf_Un );
   
   // Finally, add the result of multiplying the "z" fields with the
   // result of the earlier addition, and push the result - the dot product -
   // onto the stack.
   mthdIL->Emit( OpCodes::Add_Ovf_Un );
   
   // The "ret" opcode will pop the last value from the stack and return it
   // to the calling method. You're all done!
   mthdIL->Emit( OpCodes::Ret );
   ivType = ivTypeBld->CreateType();
   return ivType;
}

int main()
{
   Type^ IVType = nullptr;
   Object^ aVector1 = nullptr;
   Object^ aVector2 = nullptr;
   array<Type^>^temp2 = {int::typeid,int::typeid,int::typeid};
   array<Type^>^aVtypes = temp2;
   array<Object^>^temp3 = {10,10,10};
   array<Object^>^aVargs1 = temp3;
   array<Object^>^temp4 = {20,20,20};
   array<Object^>^aVargs2 = temp4;
   
   // Call the  method to build our dynamic class.
   IVType = DynamicDotProductGen();
   Console::WriteLine( "---" );
   ConstructorInfo^ myDTctor = IVType->GetConstructor( aVtypes );
   aVector1 = myDTctor->Invoke( aVargs1 );
   aVector2 = myDTctor->Invoke( aVargs2 );
   array<Object^>^passMe = gcnew array<Object^>(1);
   passMe[ 0 ] = dynamic_cast<Object^>(aVector2);
   Console::WriteLine( "(10, 10, 10) . (20, 20, 20) = {0}", IVType->InvokeMember( "DotProduct", BindingFlags::InvokeMethod, nullptr, aVector1, passMe ) );
}

// +++ OUTPUT +++
// ---
// (10, 10, 10) . (20, 20, 20) = 600
using System;
using System.Threading;
using System.Reflection;
using System.Reflection.Emit;

class TestILGenerator
{
    public static Type DynamicDotProductGen()
    {
       Type ivType = null;
       Type[] ctorParams = new Type[] { typeof(int),
                                typeof(int),
                        typeof(int)};
    
       AppDomain myDomain = Thread.GetDomain();
       AssemblyName myAsmName = new AssemblyName();
       myAsmName.Name = "IntVectorAsm";
    
       AssemblyBuilder myAsmBuilder = myDomain.DefineDynamicAssembly(
                      myAsmName,
                      AssemblyBuilderAccess.RunAndSave);

       ModuleBuilder IntVectorModule = myAsmBuilder.DefineDynamicModule("IntVectorModule",
                                        "Vector.dll");

       TypeBuilder ivTypeBld = IntVectorModule.DefineType("IntVector",
                                      TypeAttributes.Public);

       FieldBuilder xField = ivTypeBld.DefineField("x", typeof(int),
                                                       FieldAttributes.Private);
       FieldBuilder yField = ivTypeBld.DefineField("y", typeof(int),
                                                       FieldAttributes.Private);
       FieldBuilder zField = ivTypeBld.DefineField("z", typeof(int),
                                                       FieldAttributes.Private);

           Type objType = Type.GetType("System.Object");
           ConstructorInfo objCtor = objType.GetConstructor(new Type[0]);

       ConstructorBuilder ivCtor = ivTypeBld.DefineConstructor(
                      MethodAttributes.Public,
                      CallingConventions.Standard,
                      ctorParams);
       ILGenerator ctorIL = ivCtor.GetILGenerator();
           ctorIL.Emit(OpCodes.Ldarg_0);
           ctorIL.Emit(OpCodes.Call, objCtor);
           ctorIL.Emit(OpCodes.Ldarg_0);
           ctorIL.Emit(OpCodes.Ldarg_1);
           ctorIL.Emit(OpCodes.Stfld, xField);
           ctorIL.Emit(OpCodes.Ldarg_0);
           ctorIL.Emit(OpCodes.Ldarg_2);
           ctorIL.Emit(OpCodes.Stfld, yField);
           ctorIL.Emit(OpCodes.Ldarg_0);
           ctorIL.Emit(OpCodes.Ldarg_3);
           ctorIL.Emit(OpCodes.Stfld, zField);
       ctorIL.Emit(OpCodes.Ret);

       // This method will find the dot product of the stored vector
       // with another.

       Type[] dpParams = new Type[] { ivTypeBld };

           // Here, you create a MethodBuilder containing the
       // name, the attributes (public, static, private, and so on),
       // the return type (int, in this case), and a array of Type
       // indicating the type of each parameter. Since the sole parameter
       // is a IntVector, the very class you're creating, you will
       // pass in the TypeBuilder (which is derived from Type) instead of
       // a Type object for IntVector, avoiding an exception.

       // -- This method would be declared in C# as:
       //    public int DotProduct(IntVector aVector)

           MethodBuilder dotProductMthd = ivTypeBld.DefineMethod(
                                  "DotProduct",
                          MethodAttributes.Public,
                                          typeof(int),
                                          dpParams);

       // A ILGenerator can now be spawned, attached to the MethodBuilder.

       ILGenerator mthdIL = dotProductMthd.GetILGenerator();
    
       // Here's the body of our function, in MSIL form. We're going to find the
       // "dot product" of the current vector instance with the passed vector
       // instance. For reference purposes, the equation is:
       // (x1 * x2) + (y1 * y2) + (z1 * z2) = the dot product

       // First, you'll load the reference to the current instance "this"
       // stored in argument 0 (ldarg.0) onto the stack. Ldfld, the subsequent
       // instruction, will pop the reference off the stack and look up the
       // field "x", specified by the FieldInfo token "xField".

       mthdIL.Emit(OpCodes.Ldarg_0);
       mthdIL.Emit(OpCodes.Ldfld, xField);

       // That completed, the value stored at field "x" is now atop the stack.
       // Now, you'll do the same for the object reference we passed as a
       // parameter, stored in argument 1 (ldarg.1). After Ldfld executed,
       // you'll have the value stored in field "x" for the passed instance
       // atop the stack.

       mthdIL.Emit(OpCodes.Ldarg_1);
       mthdIL.Emit(OpCodes.Ldfld, xField);

           // There will now be two values atop the stack - the "x" value for the
       // current vector instance, and the "x" value for the passed instance.
       // You'll now multiply them, and push the result onto the evaluation stack.

       mthdIL.Emit(OpCodes.Mul_Ovf_Un);

       // Now, repeat this for the "y" fields of both vectors.

       mthdIL.Emit(OpCodes.Ldarg_0);
       mthdIL.Emit(OpCodes.Ldfld, yField);
       mthdIL.Emit(OpCodes.Ldarg_1);
       mthdIL.Emit(OpCodes.Ldfld, yField);
       mthdIL.Emit(OpCodes.Mul_Ovf_Un);

       // At this time, the results of both multiplications should be atop
       // the stack. You'll now add them and push the result onto the stack.

       mthdIL.Emit(OpCodes.Add_Ovf_Un);

       // Multiply both "z" field and push the result onto the stack.
       mthdIL.Emit(OpCodes.Ldarg_0);
       mthdIL.Emit(OpCodes.Ldfld, zField);
       mthdIL.Emit(OpCodes.Ldarg_1);
       mthdIL.Emit(OpCodes.Ldfld, zField);
       mthdIL.Emit(OpCodes.Mul_Ovf_Un);

       // Finally, add the result of multiplying the "z" fields with the
       // result of the earlier addition, and push the result - the dot product -
       // onto the stack.
       mthdIL.Emit(OpCodes.Add_Ovf_Un);

       // The "ret" opcode will pop the last value from the stack and return it
       // to the calling method. You're all done!

       mthdIL.Emit(OpCodes.Ret);

       ivType = ivTypeBld.CreateType();

       return ivType;
    }

    public static void Main() {
    
       Type IVType = null;
           object aVector1 = null;
           object aVector2 = null;
       Type[] aVtypes = new Type[] {typeof(int), typeof(int), typeof(int)};
           object[] aVargs1 = new object[] {10, 10, 10};
           object[] aVargs2 = new object[] {20, 20, 20};
    
       // Call the  method to build our dynamic class.

       IVType = DynamicDotProductGen();

           Console.WriteLine("---");

       ConstructorInfo myDTctor = IVType.GetConstructor(aVtypes);
       aVector1 = myDTctor.Invoke(aVargs1);
       aVector2 = myDTctor.Invoke(aVargs2);

       object[] passMe = new object[1];
           passMe[0] = (object)aVector2;

       Console.WriteLine("(10, 10, 10) . (20, 20, 20) = {0}",
                 IVType.InvokeMember("DotProduct",
                          BindingFlags.InvokeMethod,
                          null,
                          aVector1,
                          passMe));

       // +++ OUTPUT +++
       // ---
       // (10, 10, 10) . (20, 20, 20) = 600
    }
}
Imports System.Threading
Imports System.Reflection
Imports System.Reflection.Emit

 _


Class TestILGenerator
   
   
   Public Shared Function DynamicDotProductGen() As Type
      
      Dim ivType As Type = Nothing
      Dim ctorParams() As Type = {GetType(Integer), GetType(Integer), GetType(Integer)}
      
      Dim myDomain As AppDomain = Thread.GetDomain()
      Dim myAsmName As New AssemblyName()
      myAsmName.Name = "IntVectorAsm"
      
      Dim myAsmBuilder As AssemblyBuilder = myDomain.DefineDynamicAssembly( _
                        myAsmName, _
                        AssemblyBuilderAccess.RunAndSave)
      
      Dim IntVectorModule As ModuleBuilder = myAsmBuilder.DefineDynamicModule( _
                         "IntVectorModule", _
                         "Vector.dll")
      
      Dim ivTypeBld As TypeBuilder = IntVectorModule.DefineType("IntVector", TypeAttributes.Public)
      
      Dim xField As FieldBuilder = ivTypeBld.DefineField("x", _
                                 GetType(Integer), _
                                 FieldAttributes.Private)
      Dim yField As FieldBuilder = ivTypeBld.DefineField("y", _ 
                                 GetType(Integer), _
                                 FieldAttributes.Private)
      Dim zField As FieldBuilder = ivTypeBld.DefineField("z", _
                                 GetType(Integer), _
                                 FieldAttributes.Private)
      
      
      Dim objType As Type = Type.GetType("System.Object")
      Dim objCtor As ConstructorInfo = objType.GetConstructor(New Type() {})
      
      Dim ivCtor As ConstructorBuilder = ivTypeBld.DefineConstructor( _
                     MethodAttributes.Public, _
                     CallingConventions.Standard, _
                     ctorParams)
      Dim ctorIL As ILGenerator = ivCtor.GetILGenerator()
      ctorIL.Emit(OpCodes.Ldarg_0)
      ctorIL.Emit(OpCodes.Call, objCtor)
      ctorIL.Emit(OpCodes.Ldarg_0)
      ctorIL.Emit(OpCodes.Ldarg_1)
      ctorIL.Emit(OpCodes.Stfld, xField)
      ctorIL.Emit(OpCodes.Ldarg_0)
      ctorIL.Emit(OpCodes.Ldarg_2)
      ctorIL.Emit(OpCodes.Stfld, yField)
      ctorIL.Emit(OpCodes.Ldarg_0)
      ctorIL.Emit(OpCodes.Ldarg_3)
      ctorIL.Emit(OpCodes.Stfld, zField)
      ctorIL.Emit(OpCodes.Ret)
     

      ' Now, you'll construct the method find the dot product of two vectors. First,
      ' let's define the parameters that will be accepted by the method. In this case,
      ' it's an IntVector itself!

      Dim dpParams() As Type = {ivTypeBld}
      
      ' Here, you create a MethodBuilder containing the
      ' name, the attributes (public, static, private, and so on),
      ' the return type (int, in this case), and a array of Type
      ' indicating the type of each parameter. Since the sole parameter
      ' is a IntVector, the very class you're creating, you will
      ' pass in the TypeBuilder (which is derived from Type) instead of 
      ' a Type object for IntVector, avoiding an exception. 
      ' -- This method would be declared in VB.NET as:
      '    Public Function DotProduct(IntVector aVector) As Integer

      Dim dotProductMthd As MethodBuilder = ivTypeBld.DefineMethod("DotProduct", _
                        MethodAttributes.Public, GetType(Integer), _
                                            dpParams)
      
      ' A ILGenerator can now be spawned, attached to the MethodBuilder.
      Dim mthdIL As ILGenerator = dotProductMthd.GetILGenerator()
      
      ' Here's the body of our function, in MSIL form. We're going to find the
      ' "dot product" of the current vector instance with the passed vector 
      ' instance. For reference purposes, the equation is:
      ' (x1 * x2) + (y1 * y2) + (z1 * z2) = the dot product
      ' First, you'll load the reference to the current instance "this"
      ' stored in argument 0 (ldarg.0) onto the stack. Ldfld, the subsequent
      ' instruction, will pop the reference off the stack and look up the
      ' field "x", specified by the FieldInfo token "xField".
      mthdIL.Emit(OpCodes.Ldarg_0)
      mthdIL.Emit(OpCodes.Ldfld, xField)
      
      ' That completed, the value stored at field "x" is now atop the stack.
      ' Now, you'll do the same for the object reference we passed as a
      ' parameter, stored in argument 1 (ldarg.1). After Ldfld executed,
      ' you'll have the value stored in field "x" for the passed instance
      ' atop the stack.
      mthdIL.Emit(OpCodes.Ldarg_1)
      mthdIL.Emit(OpCodes.Ldfld, xField)
      
      ' There will now be two values atop the stack - the "x" value for the
      ' current vector instance, and the "x" value for the passed instance.
      ' You'll now multiply them, and push the result onto the evaluation stack.
      mthdIL.Emit(OpCodes.Mul_Ovf_Un)
      
      ' Now, repeat this for the "y" fields of both vectors.
      mthdIL.Emit(OpCodes.Ldarg_0)
      mthdIL.Emit(OpCodes.Ldfld, yField)
      mthdIL.Emit(OpCodes.Ldarg_1)
      mthdIL.Emit(OpCodes.Ldfld, yField)
      mthdIL.Emit(OpCodes.Mul_Ovf_Un)
      
      ' At this time, the results of both multiplications should be atop
      ' the stack. You'll now add them and push the result onto the stack.
      mthdIL.Emit(OpCodes.Add_Ovf_Un)
      
      ' Multiply both "z" field and push the result onto the stack.
      mthdIL.Emit(OpCodes.Ldarg_0)
      mthdIL.Emit(OpCodes.Ldfld, zField)
      mthdIL.Emit(OpCodes.Ldarg_1)
      mthdIL.Emit(OpCodes.Ldfld, zField)
      mthdIL.Emit(OpCodes.Mul_Ovf_Un)
      
      ' Finally, add the result of multiplying the "z" fields with the
      ' result of the earlier addition, and push the result - the dot product -
      ' onto the stack.
      mthdIL.Emit(OpCodes.Add_Ovf_Un)
      
      ' The "ret" opcode will pop the last value from the stack and return it
      ' to the calling method. You're all done!
      mthdIL.Emit(OpCodes.Ret)
      
      
      ivType = ivTypeBld.CreateType()
      
      Return ivType
   End Function 'DynamicDotProductGen
    
   
   Public Shared Sub Main()
      
      Dim IVType As Type = Nothing
      Dim aVector1 As Object = Nothing
      Dim aVector2 As Object = Nothing
      Dim aVtypes() As Type = {GetType(Integer), GetType(Integer), GetType(Integer)}
      Dim aVargs1() As Object = {10, 10, 10}
      Dim aVargs2() As Object = {20, 20, 20}
      
      ' Call the  method to build our dynamic class.
      IVType = DynamicDotProductGen()
      
      
      Dim myDTctor As ConstructorInfo = IVType.GetConstructor(aVtypes)
      aVector1 = myDTctor.Invoke(aVargs1)
      aVector2 = myDTctor.Invoke(aVargs2)
      
      Console.WriteLine("---")
      Dim passMe(0) As Object
      passMe(0) = CType(aVector2, Object)
      
      Console.WriteLine("(10, 10, 10) . (20, 20, 20) = {0}", _
                        IVType.InvokeMember("DotProduct", BindingFlags.InvokeMethod, _
                        Nothing, aVector1, passMe))
   End Sub
End Class



' +++ OUTPUT +++
' ---
' (10, 10, 10) . (20, 20, 20) = 600

설명

이 API에 대한 자세한 내용은 TypeBuilder에 대한 추가 API 설명을 참조하세요.

생성자

TypeBuilder()

TypeBuilder 클래스의 새 인스턴스를 초기화합니다.

필드

UnspecifiedTypeSize

형식에 대한 총 크기가 지정되지 않았음을 나타냅니다.

속성

Assembly

이 형식 정의를 포함하는 동적 어셈블리를 검색합니다.

AssemblyQualifiedName

어셈블리의 표시 이름으로 정규화된 이 형식의 전체 이름을 반환합니다.

Attributes

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

Attributes

Type과 관련된 특성을 가져옵니다.

(다음에서 상속됨 Type)
Attributes

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
BaseType

이 형식의 기본 형식을 가져옵니다.

ContainsGenericParameters

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

ContainsGenericParameters

현재 Type 개체에 특정 형식으로 바뀌지 않은 형식 매개 변수가 있는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
ContainsGenericParameters

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
CustomAttributes

이 멤버의 사용자 지정 특성을 포함하는 컬렉션을 가져옵니다.

(다음에서 상속됨 MemberInfo)
DeclaredConstructors

현재 형식이 선언하는 생성자의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
DeclaredEvents

현재 형식이 정의하는 이벤트의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
DeclaredFields

현재 형식이 정의하는 필드의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
DeclaredMembers

현재 형식이 정의하는 멤버의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
DeclaredMethods

현재 형식이 정의하는 메서드의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
DeclaredNestedTypes

현재 형식이 정의하는 중첩 형식의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
DeclaredProperties

현재 형식이 정의하는 속성의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
DeclaringMethod

현재 제네릭 형식 매개 변수를 선언하는 메서드를 가져옵니다.

DeclaringMethod

현재 MethodBase가 제네릭 메서드의 형식 매개 변수를 나타내는 경우 선언 메서드를 나타내는 Type를 가져옵니다.

(다음에서 상속됨 Type)
DeclaringType

해당 형식을 선언한 형식을 반환합니다.

FullName

해당 형식의 전체 경로를 검색합니다.

GenericParameterAttributes

현재 제네릭 형식 매개 변수의 공 분산과 특수 제약 조건을 나타내는 값을 가져옵니다.

GenericParameterAttributes

현재 제네릭 형식 매개 변수의 공 분산과 특수 제약 조건을 설명하는 GenericParameterAttributes 플래그의 조합을 가져옵니다.

(다음에서 상속됨 Type)
GenericParameterPosition

매개 변수를 선언한 제네릭 형식의 형식 매개 변수 목록에서 형식 매개 변수의 위치를 가져옵니다.

GenericParameterPosition

Type 개체가 제네릭 형식이나 제네릭 메서드의 형식 매개 변수를 나타내는 경우, 해당 매개 변수가 선언된 제네릭 형식 또는 메서드의 형식 매개 변수 목록에서 해당 형식 매개 변수가 있는 위치를 가져옵니다.

(다음에서 상속됨 Type)
GenericTypeArguments

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GenericTypeArguments

이 형식에 대한 제네릭 형식 인수의 배열을 가져옵니다.

(다음에서 상속됨 Type)
GenericTypeArguments

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GenericTypeParameters

현재 인스턴스의 제네릭 형식 매개 변수 배열을 가져옵니다.

(다음에서 상속됨 TypeInfo)
GUID

이 형식의 GUID를 검색합니다.

HasElementType

현재 Type이 다른 형식을 포함하거나 참조하는지 여부, 즉 현재 Type이 배열 또는 포인터이거나 참조로 전달되는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
HasElementType

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
ImplementedInterfaces

현재 형식에 의해 구현된 인터페이스의 컬렉션을 가져옵니다.

(다음에서 상속됨 TypeInfo)
IsAbstract

Type이 추상이며 재정의되어야 하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsAbstract

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsAnsiClass

AnsiClass에 대해 문자열 형식 특성 Type가 선택되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsAnsiClass

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsArray

유형이 배열인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsArray

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsAutoClass

AutoClass에 대해 문자열 형식 특성 Type가 선택되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsAutoClass

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsAutoLayout

현재 형식의 필드가 공용 언어 런타임에 의해 자동으로 배치되는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsAutoLayout

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsByRef

Type이 참조로 전달되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsByRef

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsByRefLike

형식이 byref와 유사한 구조체인지 여부를 나타내는 값을 가져옵니다.

IsByRefLike

형식이 byref와 유사한 구조체인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsClass

Type이 클래스 혹은 대리자인지, 즉 값 형식 또는 인터페이스가 아닌지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsClass

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsCollectible

MemberInfo 개체가 수집 가능한 AssemblyLoadContext에 보관된 어셈블리의 일부인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 MemberInfo)
IsCOMObject

Type이 COM 개체인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsCOMObject

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsConstructedGenericType

이 개체가 생성된 제네릭 형식을 나타내는지를 지정하는 값을 가져옵니다.

IsConstructedGenericType

이 개체가 생성된 제네릭 형식을 나타내는지를 지정하는 값을 가져옵니다. 생성된 제네릭 형식의 인스턴스를 만들 수 있습니다.

(다음에서 상속됨 Type)
IsContextful

Type이 컨텍스트에서 호스팅될 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsEnum

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

IsEnum

Type이 열거형을 나타내는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsEnum

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsExplicitLayout

현재 형식의 필드가 명시적으로 지정된 오프셋에 배치되는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsExplicitLayout

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsFunctionPointer

현재 Type 가 함수 포인터인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsGenericMethodParameter

현재 Type이 제네릭 메서드 정의의 형식 매개 변수를 나타내는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsGenericParameter

현재 형식이 제네릭 형식 매개 변수인지를 나타내는 값을 가져옵니다.

IsGenericParameter

현재 Type이 제네릭 형식 또는 메서드 정의의 형식 매개 변수를 나타내는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsGenericType

현재 형식이 제네릭 형식인지를 나타내는 값을 가져옵니다.

IsGenericType

현재 형식이 제네릭 형식인지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsGenericTypeDefinition

현재 TypeBuilder가 다른 제네릭 형식을 생성하는 데 사용될 수 있는 제네릭 형식 정의를 나타내는지를 가리키는 값을 가져옵니다.

IsGenericTypeDefinition

현재 Type이 다른 제네릭 형식을 생성하는 데 사용될 수 있는 제네릭 형식 정의를 나타내는지를 가리키는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsGenericTypeParameter

현재 Type이 제네릭 형식 정의의 형식 매개 변수를 나타내는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsImport

TypeComImportAttribute 특성이 적용되어 있는지 여부를 나타내는 값을 가져옵니다. 이 특성은 해당 형식이 COM 형식 라이브러리에서 가져온 것임을 나타냅니다.

(다음에서 상속됨 Type)
IsImport

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsInterface

Type이 인터페이스인지, 즉 클래스 또는 값 형식이 아닌지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsInterface

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsLayoutSequential

메타데이터에 정의되고 내보낸 순서로 현재 형식의 필드가 순차적으로 배치되는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsLayoutSequential

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsMarshalByRef

Type이 참조로 마샬링되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsMarshalByRef

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNested

현재 Type 개체가 다른 형식의 정의 안에 중첩된 정의를 가진 형식을 나타내는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNested

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNestedAssembly

Type이 중첩되었으며 자체 어셈블리 내에서만 표시되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNestedAssembly

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNestedFamANDAssem

Type이 중첩되었으며 자체 패밀리와 자체 어셈블리 모두에 속하는 클래스에만 표시되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNestedFamANDAssem

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNestedFamily

Type이 중첩되었으며 자체 패밀리 내에서만 표시되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNestedFamily

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNestedFamORAssem

Type이 중첩되었으며 자체 패밀리와 자체 어셈블리 중 하나에 속하는 클래스에만 표시되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNestedFamORAssem

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNestedPrivate

Type이 중첩되어 있고 private 형식으로 선언되어 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNestedPrivate

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNestedPublic

클래스가 중첩되어 있고 public 형식으로 선언되어 있는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNestedPublic

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsNotPublic

Type이 public으로 선언되어 있지 않은지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsNotPublic

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsPointer

Type이 포인터인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsPointer

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsPrimitive

Type 이 기본 형식 중 하나인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsPrimitive

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsPublic

Type이 public으로 선언되어 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsPublic

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsSealed

Type이 봉인된 형식으로 선언되어 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsSealed

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsSecurityCritical

현재 형식이 보안에 중요한 형식이거나 보안 안전에 중요한 형식이어서 중요한 작업을 수행할 수 있는지를 나타내는 값을 가져옵니다.

IsSecurityCritical

현재 형식이 현재 신뢰 수준에서 보안에 중요한 형식이거나 보안 안전에 중요한 형식이어서 중요한 작업을 수행할 수 있는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsSecuritySafeCritical

현재 형식이 보안 안전에 중요한 형식인지 즉, 중요한 작업을 수행할 수 있고 투명 코드로 액세스할 수 있는지를 나타내는 값을 가져옵니다.

IsSecuritySafeCritical

현재 형식이 현재 신뢰 수준에서 보안 안전에 중요한 형식인지 즉, 중요한 작업을 수행할 수 있고 투명 코드로 액세스할 수 있는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsSecurityTransparent

현재 형식이 투명하여 중요한 작업을 수행할 수 없는지를 나타내는 값을 가져옵니다.

IsSecurityTransparent

현재 형식이 현재 신뢰 수준에서 투명하여 중요한 작업을 수행할 수 없는지를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsSerializable

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

IsSerializable
사용되지 않음.

가 이진 직렬화 가능한지 여부를 Type 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsSerializable

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsSignatureType

형식이 시그니처 형식인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsSpecialName

별도의 처리가 필요한 이름이 형식에 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsSpecialName

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsSZArray

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

IsSZArray

형식이 하한이 0인 1차원 배열만 나타낼 수 있는 배열 형식인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsTypeDefinition

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

IsTypeDefinition

형식이 형식 정의인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsUnicodeClass

UnicodeClass에 대해 문자열 형식 특성 Type가 선택되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsUnicodeClass

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsUnmanagedFunctionPointer

현재 Type 가 관리되지 않는 함수 포인터인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsValueType

Type이 값 형식인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsValueType

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsVariableBoundArray

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

IsVariableBoundArray

형식이 하한이 임의적인 배열 또는 다차원 배열만 나타낼 수 있는 배열 형식인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsVisible

Type을 어셈블리 외부의 코드에서 액세스할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Type)
IsVisible

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
MemberType

이 멤버가 형식 또는 중첩 형식임을 나타내는 MemberTypes 값을 가져옵니다.

(다음에서 상속됨 Type)
MemberType

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
MetadataToken

메타데이터에서 현재 동적 모듈을 식별하는 토큰을 가져옵니다.

MetadataToken

메타데이터 요소를 식별하는 값을 가져옵니다.

(다음에서 상속됨 MemberInfo)
Module

이 형식 정의를 포함하는 동적 모듈을 검색합니다.

Name

이 형식의 이름을 검색합니다.

Namespace

TypeBuilder가 정의되어 있는 네임스페이스를 검색합니다.

PackingSize

이 형식의 압축 크기를 검색합니다.

PackingSizeCore

파생 클래스에서 재정의되는 경우 이 형식의 압축 크기를 가져옵니다.

ReflectedType

이 형식은 획득하는 데 사용한 형식을 반환합니다.

ReflectedType

MemberInfo의 이 인스턴스를 가져오는 데 사용된 클래스 개체를 가져옵니다.

(다음에서 상속됨 MemberInfo)
Size

형식의 전체 크기를 검색합니다.

SizeCore

파생 클래스에서 재정의되는 경우 형식의 총 크기를 가져옵니다.

StructLayoutAttribute

현재 형식의 레이아웃을 설명하는 StructLayoutAttribute를 가져옵니다.

(다음에서 상속됨 Type)
StructLayoutAttribute

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
TypeHandle

동적 모듈에서 지원되지 않습니다.

TypeInitializer

형식에 대한 이니셜라이저를 가져옵니다.

(다음에서 상속됨 Type)
TypeInitializer

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
TypeToken

이 형식의 형식 토큰을 반환합니다.

UnderlyingSystemType

TypeBuilder에 대한 내부 시스템 형식을 반환합니다.

UnderlyingSystemType

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)

메서드

AddDeclarativeSecurity(SecurityAction, PermissionSet)

이 형식에 선언적 보안을 추가합니다.

AddInterfaceImplementation(Type)

이 형식이 구현하는 인터페이스를 추가합니다.

AddInterfaceImplementationCore(Type)

파생 클래스에서 재정의되는 경우 이 형식이 구현하는 인터페이스를 추가합니다.

AsType()

현재 형식을 Type 개체로 반환합니다.

(다음에서 상속됨 TypeInfo)
CreateType()

해당 클래스에 대한 Type 개체를 만듭니다. 클래스의 필드 및 메서드를 정의한 후에 CreateType을 호출하여 해당 클래스의 Type 개체를 로드합니다.

CreateTypeInfo()

이 형식을 나타내는 TypeInfo 개체를 가져옵니다.

CreateTypeInfoCore()

파생 클래스에서 재정의되는 경우 이 형식을 TypeInfo 나타내는 개체를 가져옵니다.

DefineConstructor(MethodAttributes, CallingConventions, Type[])

지정된 특성 및 서명을 사용하여 새 생성자를 형식에 추가합니다.

DefineConstructor(MethodAttributes, CallingConventions, Type[], Type[][], Type[][])

지정된 특성, 서명 및 사용자 지정 수정자를 사용하여 새 생성자를 형식에 추가합니다.

DefineConstructorCore(MethodAttributes, CallingConventions, Type[], Type[][], Type[][])

파생 클래스에서 재정의되는 경우 지정된 특성, 서명 및 사용자 지정 한정자를 사용하여 형식에 새 생성자를 추가합니다.

DefineDefaultConstructor(MethodAttributes)

매개 변수가 없는 생성자를 정의합니다. 여기에 정의된 생성자는 부모의 매개 변수가 없는 생성자를 호출하기만 하면 됩니다.

DefineDefaultConstructorCore(MethodAttributes)

파생 클래스에서 재정의되는 경우 매개 변수가 없는 생성자를 정의합니다. 여기에 정의된 생성자는 부모의 매개 변수 없는 생성자를 호출합니다.

DefineEvent(String, EventAttributes, Type)

지정된 이름, 특성 및 이벤트 형식을 사용하여 형식에 새 이벤트를 추가합니다.

DefineEventCore(String, EventAttributes, Type)

파생 클래스에서 재정의되는 경우 지정된 이름, 특성 및 이벤트 형식을 사용하여 형식에 새 이벤트를 추가합니다.

DefineField(String, Type, FieldAttributes)

지정된 이름, 특성 및 필드 형식을 사용하여 형식에 새 필드를 추가합니다.

DefineField(String, Type, Type[], Type[], FieldAttributes)

지정된 이름, 특성, 필드 형식 및 사용자 지정 한정자를 사용하여 형식에 새 필드를 추가합니다.

DefineFieldCore(String, Type, Type[], Type[], FieldAttributes)

파생 클래스에서 재정의되는 경우 지정된 이름, 특성, 필드 형식 및 사용자 지정 한정자를 사용하여 형식에 새 필드를 추가합니다.

DefineGenericParameters(String[])

현재 형식에 대한 제네릭 형식 매개 변수를 정의하고 해당 번호 및 이름을 지정한 후, 해당 제약 조건을 설정하는 데 사용할 수 있는 GenericTypeParameterBuilder 개체 배열을 반환합니다.

DefineGenericParametersCore(String[])

파생 클래스에서 재정의되는 경우 현재 형식의 제네릭 형식 매개 변수를 정의하여 해당 번호와 이름을 지정합니다.

DefineInitializedData(String, Byte[], FieldAttributes)

PE(이식 가능) 파일의 .sdata 섹션에서 초기화되지 않은 데이터 필드를 정의합니다.

DefineInitializedDataCore(String, Byte[], FieldAttributes)

파생 클래스에서 재정의되는 경우 PE(이식 가능한 실행 파일) 파일의 .sdata 섹션에서 초기화된 데이터 필드를 정의합니다.

DefineMethod(String, MethodAttributes)

지정된 이름 및 메서드 특성을 사용하여 새 메서드를 형식에 추가합니다.

DefineMethod(String, MethodAttributes, CallingConventions)

지정된 이름, 메서드 특성 및 호출 규칙을 사용하여 형식에 새 메서드를 추가합니다.

DefineMethod(String, MethodAttributes, CallingConventions, Type, Type[])

지정된 이름, 메서드 특성, 호출 규칙 및 메서드 서명을 사용하여 형식에 새 메서드를 추가합니다.

DefineMethod(String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

지정된 이름, 메서드 특성, 호출 규칙, 메서드 서명 및 사용자 지정 한정자를 사용하여 형식에 새 메서드를 추가합니다.

DefineMethod(String, MethodAttributes, Type, Type[])

지정된 이름, 메서드 특성 및 메서드 서명을 사용하여 형식에 새 메서드를 추가합니다.

DefineMethodCore(String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

파생 클래스에서 재정의되는 경우 지정된 이름, 메서드 특성, 호출 규칙, 메서드 서명 및 사용자 지정 한정자를 사용하여 형식에 새 메서드를 추가합니다.

DefineMethodOverride(MethodInfo, MethodInfo)

잠재적으로 다른 이름을 사용하여 지정된 메서드 선언을 구현하는 지정된 메서드 본문을 지정 합니다.

DefineMethodOverrideCore(MethodInfo, MethodInfo)

파생 클래스에서 재정의되는 경우 는 지정된 메서드 선언을 구현하는 지정된 메서드 본문을 지정하며, 잠재적으로 다른 이름을 사용합니다.

DefineNestedType(String)

지정된 이름의 중첩 형식을 정의합니다.

DefineNestedType(String, TypeAttributes)

이름 및 특성이 지정된 경우 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type)

해당 이름, 특성 및 확장되는 형식이 지정된 경우 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type, Int32)

해당 이름, 특성, 형식의 총 크기 및 해당 형식이 확장하는 형식을 지정하여 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type, PackingSize)

해당 이름, 특성, 해당 형식이 확장하는 형식, 압축 크기를 지정하여 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type, PackingSize, Int32)

해당 이름, 특성, 크기 및 해당 형식이 확장하는 형식을 지정하여 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type, Type[])

해당 이름, 특성, 해당 형식이 확장하는 형식, 구현하는 인터페이스를 지정하여 중첩된 형식을 정의합니다.

DefineNestedTypeCore(String, TypeAttributes, Type, Type[], PackingSize, Int32)

파생 클래스에서 재정의되는 경우 는 이름, 특성, 크기 및 확장되는 형식을 고려하여 중첩된 형식을 정의합니다.

DefinePInvokeMethod(String, String, MethodAttributes, CallingConventions, Type, Type[], CallingConvention, CharSet)

해당 이름, 메서드가 정의된 DLL의 이름, 메서드의 특성, 메서드의 호출 규칙, 메서드의 반환 형식, 메서드의 매개 변수 형식 및 PInvoke 플래그를 지정하여 PInvoke 메서드를 정의합니다.

DefinePInvokeMethod(String, String, String, MethodAttributes, CallingConventions, Type, Type[], CallingConvention, CharSet)

해당 이름, 메서드가 정의된 DLL의 이름, 진입점의 이름, 메서드의 특성, 메서드의 호출 규칙, 메서드의 반환 형식, 메서드의 매개 변수 형식 및 PInvoke 플래그를 지정하여 PInvoke 메서드를 정의합니다.

DefinePInvokeMethod(String, String, String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][], CallingConvention, CharSet)

해당 이름, 메서드가 정의된 DLL의 이름, 진입점의 이름, 메서드의 특성, 메서드의 호출 규칙, 메서드의 반환 형식, 메서드의 매개 변수 형식, PInvoke 플래그, 매개 변수/반환 형식에 대한 사용자 지정 한정자를 지정하여 PInvoke 메서드를 정의합니다.

DefinePInvokeMethodCore(String, String, String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][], CallingConvention, CharSet)

파생 클래스에서 재정의되는 경우 제공된 이름, DLL 이름, 진입점 이름, 특성, 호출 규칙, 반환 형식, 매개 변수 형식, PInvoke 플래그 및 매개 변수 및 반환 형식에 대한 사용자 지정 한정자를 사용하여 PInvoke 메서드를 정의합니다.

DefineProperty(String, PropertyAttributes, CallingConventions, Type, Type[])

지정된 이름, 특성, 호출 규칙 및 속성 서명을 사용하여 형식에 새 속성을 추가합니다.

DefineProperty(String, PropertyAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

지정된 이름, 호출 규칙, 속성 서명 및 사용자 지정 한정자를 사용하여 형식에 새 속성을 추가합니다.

DefineProperty(String, PropertyAttributes, Type, Type[])

지정된 이름 및 속성 서명을 사용하여 형식에 새 속성을 추가합니다.

DefineProperty(String, PropertyAttributes, Type, Type[], Type[], Type[], Type[][], Type[][])

지정된 이름, 속성 서명 및 사용자 지정 한정자를 사용하여 형식에 새 속성을 추가합니다.

DefinePropertyCore(String, PropertyAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

파생 클래스에서 재정의되는 경우 지정된 이름, 호출 규칙, 속성 서명 및 사용자 지정 한정자를 사용하여 형식에 새 속성을 추가합니다.

DefineTypeInitializer()

이 형식에 대한 이니셜라이저를 정의합니다.

DefineTypeInitializerCore()

파생 클래스에서 재정의되는 경우 이 형식에 대한 이니셜라이저를 정의합니다.

DefineUninitializedData(String, Int32, FieldAttributes)

PE(이식 가능) 파일의 .sdata 섹션에서 초기화되지 않은 데이터 필드를 정의합니다.

DefineUninitializedDataCore(String, Int32, FieldAttributes)

파생 클래스에서 재정의되는 경우 PE(이식 가능한 실행 파일) 파일의 섹션에서 초기화되지 않은 데이터 필드를 .sdata 정의합니다.

Equals(Object)

현재 Type 개체의 내부 시스템 형식이 지정된 Object의 내부 시스템 형식과 동일한지 확인합니다.

(다음에서 상속됨 Type)
Equals(Object)

이 인스턴스가 지정된 개체와 같은지를 나타내는 값을 반환합니다.

(다음에서 상속됨 MemberInfo)
Equals(Type)

현재 Type의 내부 시스템 형식이 지정된 Type의 내부 시스템 형식과 동일한지 확인합니다.

(다음에서 상속됨 Type)
FindInterfaces(TypeFilter, Object)

현재 Type에 의해 구현되거나 상속되는 인터페이스의 필터링된 목록을 나타내는 Type 개체의 배열을 반환합니다.

(다음에서 상속됨 Type)
FindInterfaces(TypeFilter, Object)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
FindMembers(MemberTypes, BindingFlags, MemberFilter, Object)

지정된 멤버 형식의 MemberInfo 개체에 대한 필터링된 배열을 반환합니다.

(다음에서 상속됨 Type)
FindMembers(MemberTypes, BindingFlags, MemberFilter, Object)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetArrayRank()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetArrayRank()

배열의 차원 수를 가져옵니다.

(다음에서 상속됨 Type)
GetArrayRank()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetAttributeFlagsImpl()

파생 클래스에서 재정의되면 Attributes 속성을 구현하고 Type과 연관된 특성을 나타내는 열거형 값의 비트 조합을 가져옵니다.

GetAttributeFlagsImpl()

파생 클래스에서 재정의되면 Attributes 속성을 구현하고 Type과 연관된 특성을 나타내는 열거형 값의 비트 조합을 가져옵니다.

(다음에서 상속됨 Type)
GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

지정된 바인딩 제약 조건 및 호출 규칙을 사용하여, 지정된 인수 형식 및 한정자와 매개 변수가 일치하는 생성자를 검색합니다.

(다음에서 상속됨 Type)
GetConstructor(BindingFlags, Binder, Type[], ParameterModifier[])

지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 생성자를 지정된 바인딩 제약 조건으로 검색합니다.

(다음에서 상속됨 Type)
GetConstructor(BindingFlags, Type[])

지정된 바인딩 제약 조건을 사용하여 매개 변수가 지정된 인수 형식과 일치하는 생성자를 검색합니다.

(다음에서 상속됨 Type)
GetConstructor(Type, ConstructorInfo)

제네릭 형식 정의의 지정된 생성자에 해당하는 생성된 특정 제네릭 형식의 생성자를 반환합니다.

GetConstructor(Type[])

지정된 배열의 형식과 일치하는 매개 변수를 가진 public 인스턴스 생성자를 검색합니다.

(다음에서 상속됨 Type)
GetConstructor(Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetConstructorImpl(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

파생 클래스에서 재정의되면, 지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 생성자를 지정된 바인딩 제약 조건 및 호출 규칙으로 검색합니다.

GetConstructorImpl(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

파생 클래스에서 재정의되면, 지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 생성자를 지정된 바인딩 제약 조건 및 호출 규칙으로 검색합니다.

(다음에서 상속됨 Type)
GetConstructors()

현재 Type에 대해 정의된 모든 public 생성자를 반환합니다.

(다음에서 상속됨 Type)
GetConstructors()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetConstructors(BindingFlags)

지정된 대로 이 클래스에 대해 정의된 public 또는 non-public 생성자를 나타내는 ConstructorInfo 개체 배열을 반환합니다.

GetConstructors(BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetCustomAttributes(Boolean)

이 형식에 대해 정의된 모든 사용자 지정 특성을 반환합니다.

GetCustomAttributes(Boolean)

파생 클래스에서 재정의되는 경우 이 멤버에 적용된 모든 사용자 지정 특성의 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
GetCustomAttributes(Type, Boolean)

지정된 형식에 할당할 수 있는 현재 형식의 모든 사용자 지정 특성을 반환합니다.

GetCustomAttributes(Type, Boolean)

파생된 클래스에서 재정의하는 경우 이 멤버에 적용되고 Type으로 식별되는 사용자 지정 특성의 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
GetCustomAttributesData()

대상 멤버에 적용된 특성에 대한 데이터를 나타내는 CustomAttributeData 개체의 목록을 반환합니다.

(다음에서 상속됨 MemberInfo)
GetDeclaredEvent(String)

현재 형식으로 선언된 지정된 이벤트를 나타내는 개체를 반환합니다.

(다음에서 상속됨 TypeInfo)
GetDeclaredField(String)

현재 형식으로 선언된 지정된 필드를 나타내는 개체를 반환합니다.

(다음에서 상속됨 TypeInfo)
GetDeclaredMethod(String)

현재 형식으로 선언된 지정된 메서드를 나타내는 개체를 반환합니다.

(다음에서 상속됨 TypeInfo)
GetDeclaredMethods(String)

지정된 이름과 일치하는 현재 형식에 선언된 모든 메서드가 포함된 컬렉션을 반환합니다.

(다음에서 상속됨 TypeInfo)
GetDeclaredNestedType(String)

현재 형식으로 선언된 지정된 중첩 형식을 나타내는 개체를 반환합니다.

(다음에서 상속됨 TypeInfo)
GetDeclaredProperty(String)

현재 형식으로 선언된 지정된 속성을 나타내는 개체를 반환합니다.

(다음에서 상속됨 TypeInfo)
GetDefaultMembers()

현재 Type에 대해 정의된 멤버 중 DefaultMemberAttribute가 설정된 멤버를 검색합니다.

(다음에서 상속됨 Type)
GetDefaultMembers()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetElementType()

이 메서드를 호출하면 NotSupportedException이 항상 throw됩니다.

GetEnumName(Object)

현재 열거형 형식에 대해 지정된 값을 가진 상수의 이름을 반환합니다.

(다음에서 상속됨 Type)
GetEnumName(Object)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetEnumNames()

현재 열거형 형식의 멤버 이름을 반환합니다.

(다음에서 상속됨 Type)
GetEnumNames()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetEnumUnderlyingType()

현재 열거형 형식의 내부 형식을 반환합니다.

(다음에서 상속됨 Type)
GetEnumUnderlyingType()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetEnumValues()

현재 열거형 형식에 있는 상수 값의 배열을 반환합니다.

(다음에서 상속됨 Type)
GetEnumValues()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetEnumValuesAsUnderlyingType()

이 열거형 형식의 기본 형식 상수 값 배열을 검색합니다.

(다음에서 상속됨 Type)
GetEvent(String)

지정된 public 이벤트를 나타내는 EventInfo 개체를 반환합니다.

(다음에서 상속됨 Type)
GetEvent(String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetEvent(String, BindingFlags)

지정된 이름의 이벤트를 반환합니다.

GetEvent(String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetEvents()

이 형식에 의해 선언되거나 상속되는 public 이벤트를 반환합니다.

GetEvents()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetEvents(BindingFlags)

이 형식으로 선언되는 public 이벤트 및 public이 아닌 이벤트를 반환합니다.

GetEvents(BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetField(String)

지정된 이름의 public 필드를 검색합니다.

(다음에서 상속됨 Type)
GetField(String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetField(String, BindingFlags)

지정된 이름에 지정된 필드를 반환합니다.

GetField(String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetField(Type, FieldInfo)

제네릭 형식 정의의 지정된 필드에 해당하는 생성된 특정 제네릭 형식의 필드를 반환합니다.

GetFields()

현재 Type의 모든 public 필드를 반환합니다.

(다음에서 상속됨 Type)
GetFields()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetFields(BindingFlags)

이 형식으로 선언되는 public 필드 및 public이 아닌 필드를 반환합니다.

GetFields(BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetFunctionPointerCallingConventions()

파생 클래스에서 재정의되는 경우 현재 함수 포인터 Type의 호출 규칙을 반환합니다.

(다음에서 상속됨 Type)
GetFunctionPointerParameterTypes()

파생 클래스에서 재정의되는 경우 현재 함수 포인터 Type의 매개 변수 형식을 반환합니다.

(다음에서 상속됨 Type)
GetFunctionPointerReturnType()

파생 클래스에서 재정의된 경우 현재 함수 포인터 Type의 반환 형식을 반환합니다.

(다음에서 상속됨 Type)
GetGenericArguments()

제네릭 형식 정의의 형식 매개 변수나 제네릭 형식의 형식 인수를 나타내는 Type 개체의 배열을 반환합니다.

GetGenericArguments()

닫힌 제네릭 형식의 형식 정의나 제네릭 형식 정의의 형식 매개 변수를 나타내는 Type 개체의 배열을 반환합니다.

(다음에서 상속됨 Type)
GetGenericArguments()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetGenericParameterConstraints()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetGenericParameterConstraints()

현재 제네릭 형식 매개 변수에 대한 제약 조건을 나타내는 Type 개체의 배열을 반환합니다.

(다음에서 상속됨 Type)
GetGenericParameterConstraints()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetGenericTypeDefinition()

현재 형식을 가져올 수 없는 제네릭 형식 정의를 나타내는 Type 개체를 반환합니다.

GetGenericTypeDefinition()

현재 제네릭 형식을 생성할 수 있는 제네릭 형식 정의를 나타내는 Type 개체를 반환합니다.

(다음에서 상속됨 Type)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 Type)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 MemberInfo)
GetInterface(String)

지정된 이름의 인터페이스를 검색합니다.

(다음에서 상속됨 Type)
GetInterface(String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetInterface(String, Boolean)

지정된 인터페이스 이름과 일치하는 정규화된 이름을 사용하여 이 클래스에 의해 (직접 또는 간접적으로) 구현된 인터페이스를 반환합니다.

GetInterface(String, Boolean)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetInterfaceMap(Type)

요청된 인터페이스에 대한 인터페이스 매핑을 반환합니다.

GetInterfaces()

이 형식과 기본 형식에 대해 구현된 모든 인터페이스의 배열을 반환합니다.

GetInterfaces()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMember(String)

지정된 이름의 public 멤버를 검색합니다.

(다음에서 상속됨 Type)
GetMember(String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMember(String, BindingFlags)

지정된 멤버를 지정된 바인딩 제약 조건으로 검색합니다.

(다음에서 상속됨 Type)
GetMember(String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMember(String, MemberTypes, BindingFlags)

지정된 대로 이 형식에 의해 선언되거나 상속되는 public 및 public이 아닌 모든 메서드를 반환합니다.

GetMember(String, MemberTypes, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMembers()

현재 Type의 모든 public 멤버를 반환합니다.

(다음에서 상속됨 Type)
GetMembers()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMembers(BindingFlags)

이 형식에 의해 선언되거나 상속되는 public 및 public이 아닌 메서드의 멤버를 반환합니다.

GetMembers(BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMemberWithSameMetadataDefinitionAs(MemberInfo)

지정된 MemberInfoMemberInfo 일치하는 현재 Type 에서 를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String)

지정된 이름의 public 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMethod(String, BindingFlags)

지정된 메서드를 지정된 바인딩 제약 조건으로 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 메서드를 지정된 바인딩 제약 조건과 지정된 호출 규칙으로 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 메서드를 지정된 바인딩 제약 조건으로 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, BindingFlags, Type[])

지정된 바인딩 제약 조건을 사용하여 매개 변수가 지정된 인수 형식과 일치하는 지정된 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, Int32, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

지정된 바인딩 제약 조건과 지정된 호출 규칙을 활용하여, 지정된 제네릭 매개 변수의 수, 인수 형식 및 한정자와 매개 변수가 일치하는 지정된 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, Int32, BindingFlags, Binder, Type[], ParameterModifier[])

지정된 바인딩 제약 조건을 사용하여, 지정된 제네릭 매개 변수의 수, 인수 형식 및 한정자와 매개 변수가 일치하는 지정된 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, Int32, BindingFlags, Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 Type)
GetMethod(String, Int32, Type[])

지정된 제네릭 매개 변수의 수 및 인수 형식과 매개 변수가 일치하는 지정된 공용 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, Int32, Type[], ParameterModifier[])

지정된 매개 변수의 수, 인수 형식 및 한정자와 매개 변수가 일치하는 지정된 공용 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, Type[])

지정된 인수 형식과 일치하는 매개 변수를 가진 지정된 public 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMethod(String, Type[], ParameterModifier[])

지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 public 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethod(String, Type[], ParameterModifier[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMethod(Type, MethodInfo)

제네릭 형식 정의의 지정된 메서드에 해당하는 생성된 특정 제네릭 형식의 메서드를 반환합니다.

GetMethodImpl(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

파생 클래스에서 재정의되면, 지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 메서드를 지정된 바인딩 제약 조건 및 호출 규칙으로 검색합니다.

GetMethodImpl(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

파생 클래스에서 재정의되면, 지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 메서드를 지정된 바인딩 제약 조건 및 호출 규칙으로 검색합니다.

(다음에서 상속됨 Type)
GetMethodImpl(String, Int32, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

파생 클래스에서 재정의되면 지정된 바인딩 제약 조건 및 호출 규칙을 활용하여, 매개 변수가 지정된 제네릭 매개 변수의 수, 인수 형식 및 한정자와 일치하는 지정된 메서드를 검색합니다.

(다음에서 상속됨 Type)
GetMethods()

현재 Type의 모든 public 메서드를 반환합니다.

(다음에서 상속됨 Type)
GetMethods()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetMethods(BindingFlags)

지정된 대로 이 형식에 의해 선언되거나 상속되는 public 및 public이 아닌 모든 메서드를 반환합니다.

GetMethods(BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetNestedType(String)

지정된 이름의 public 중첩 형식을 검색합니다.

(다음에서 상속됨 Type)
GetNestedType(String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetNestedType(String, BindingFlags)

이 형식에 의해 선언되는 public 중첩 형식 및 public이 아닌 중첩 형식을 반환합니다.

GetNestedType(String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetNestedTypes()

현재 Type에 중첩된 public 형식을 반환합니다.

(다음에서 상속됨 Type)
GetNestedTypes()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetNestedTypes(BindingFlags)

이 형식에 의해 선언되거나 상속되는 public 및 public이 아닌 중첩된 형식을 반환합니다.

GetNestedTypes(BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetOptionalCustomModifiers()

파생 클래스에서 재정의되는 경우 현재 Type의 선택적 사용자 지정 한정자를 반환합니다.

(다음에서 상속됨 Type)
GetProperties()

현재 Type의 모든 public 속성을 반환합니다.

(다음에서 상속됨 Type)
GetProperties()

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetProperties(BindingFlags)

지정된 대로 이 형식에 의해 선언되거나 상속되는 public 및 non-public 속성을 모두 반환합니다.

GetProperties(BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetProperty(String)

지정된 이름의 public 속성을 검색합니다.

(다음에서 상속됨 Type)
GetProperty(String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetProperty(String, BindingFlags)

지정된 속성을 지정된 바인딩 제약 조건으로 검색합니다.

(다음에서 상속됨 Type)
GetProperty(String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 속성을 지정된 바인딩 제약 조건으로 검색합니다.

(다음에서 상속됨 Type)
GetProperty(String, Type)

지정된 이름과 반환 형식의 public 속성을 검색합니다.

(다음에서 상속됨 Type)
GetProperty(String, Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetProperty(String, Type, Type[])

지정된 인수 형식과 일치하는 매개 변수를 가진 지정된 public 속성을 검색합니다.

(다음에서 상속됨 Type)
GetProperty(String, Type, Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetProperty(String, Type, Type[], ParameterModifier[])

지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 public 속성을 검색합니다.

(다음에서 상속됨 Type)
GetProperty(String, Type, Type[], ParameterModifier[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetProperty(String, Type[])

지정된 인수 형식과 일치하는 매개 변수를 가진 지정된 public 속성을 검색합니다.

(다음에서 상속됨 Type)
GetProperty(String, Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
GetPropertyImpl(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

파생 클래스에서 재정의되면, 지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 속성을 지정된 바인딩 제약 조건으로 검색합니다.

GetPropertyImpl(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

파생 클래스에서 재정의되면, 지정된 인수 형식 및 한정자와 일치하는 매개 변수를 가진 지정된 속성을 지정된 바인딩 제약 조건으로 검색합니다.

(다음에서 상속됨 Type)
GetRequiredCustomModifiers()

파생 클래스에서 재정의된 경우 현재 Type의 필수 사용자 지정 한정자를 반환합니다.

(다음에서 상속됨 Type)
GetType()

현재 Type를 가져옵니다.

(다음에서 상속됨 Type)
GetType()

멤버의 특성을 검색하고 멤버 메타데이터에 대한 액세스를 제공합니다.

(다음에서 상속됨 MemberInfo)
GetTypeCodeImpl()

Type 인스턴스에 대한 내부 형식 코드를 반환합니다.

(다음에서 상속됨 Type)
HasElementTypeImpl()

파생 클래스에서 재정의되면, HasElementType 속성을 구현하고 현재 Type이 다른 형식을 포함하거나 참조하는지 여부, 즉 현재 Type이 배열 또는 포인터이거나 참조로 전달되는지를 확인합니다.

HasElementTypeImpl()

파생 클래스에서 재정의되면, HasElementType 속성을 구현하고 현재 Type이 다른 형식을 포함하거나 참조하는지 여부, 즉 현재 Type이 배열 또는 포인터이거나 참조로 전달되는지를 확인합니다.

(다음에서 상속됨 Type)
HasSameMetadataDefinitionAs(MemberInfo)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 MemberInfo)
InvokeMember(String, BindingFlags, Binder, Object, Object[])

지정된 바인딩 제약 조건과 인수 목록을 사용하여 지정된 멤버를 호출합니다.

(다음에서 상속됨 Type)
InvokeMember(String, BindingFlags, Binder, Object, Object[], CultureInfo)

지정된 바인딩 제약 조건과 지정된 인수 목록 및 문화권을 사용하여 지정된 멤버를 호출합니다.

(다음에서 상속됨 Type)
InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

지정된 멤버를 호출합니다. 호출해야 할 메서드에 액세스할 수 있어야 하며 이 메서드가 지정된 바인더 및 호출 특성의 제약 조건 하에서 지정된 인수 목록과 가장 구체적으로 일치하는 항목을 제공해야 합니다.

IsArrayImpl()

파생 클래스에서 재정의되면, IsArray 속성을 구현하고 Type이 배열인지를 확인합니다.

IsArrayImpl()

파생 클래스에서 재정의되면, IsArray 속성을 구현하고 Type이 배열인지를 확인합니다.

(다음에서 상속됨 Type)
IsAssignableFrom(Type)

지정된 Type을 이 개체에 할당할 수 있는지 여부를 나타내는 값을 가져옵니다.

IsAssignableFrom(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsAssignableFrom(TypeInfo)

지정된 TypeInfo 개체를 이 개체에 할당할 수 있는지를 나타내는 값을 가져옵니다.

IsAssignableTo(Type)

지정된 targetType의 변수에 현재 형식을 할당할 수 있는지 여부를 결정합니다.

(다음에서 상속됨 Type)
IsByRefImpl()

파생 클래스에서 재정의되면, IsByRef 속성을 구현하고 Type이 참조로 전달되는지를 확인합니다.

IsByRefImpl()

파생 클래스에서 재정의되면, IsByRef 속성을 구현하고 Type이 참조로 전달되는지를 확인합니다.

(다음에서 상속됨 Type)
IsCOMObjectImpl()

파생 클래스에서 재정의되면, IsCOMObject 속성을 구현하고 Type이 COM 개체인지를 확인합니다.

IsCOMObjectImpl()

파생 클래스에서 재정의되면, IsCOMObject 속성을 구현하고 Type이 COM 개체인지를 확인합니다.

(다음에서 상속됨 Type)
IsContextfulImpl()

IsContextful 속성을 구현하고, Type이 컨텍스트에서 호스팅될 수 있는지 여부를 확인합니다.

(다음에서 상속됨 Type)
IsCreated()

현재 동적 형식이 만들어졌는지 여부를 나타내는 값을 반환합니다.

IsCreatedCore()

파생 클래스에서 재정의되는 경우 현재 동적 형식이 만들어졌는지 여부를 나타내는 값을 반환합니다.

IsDefined(Type, Boolean)

사용자 지정 특성이 현재 형식에 적용되는지 여부를 결정합니다.

IsDefined(Type, Boolean)

파생 클래스에서 재정의되는 경우 지정된 형식 또는 파생 형식의 특성이 하나 이상 이 멤버에 적용되는지 여부를 나타냅니다.

(다음에서 상속됨 MemberInfo)
IsEnumDefined(Object)

현재 열거형 형식에 지정된 값이 있는지를 나타내는 값을 반환합니다.

(다음에서 상속됨 Type)
IsEnumDefined(Object)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsEquivalentTo(Type)

두 COM 형식이 같은 ID를 갖고 동일 형식이 될 수 있는지를 확인합니다.

(다음에서 상속됨 Type)
IsEquivalentTo(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsInstanceOfType(Object)

지정된 개체가 현재 Type의 인스턴스인지를 확인합니다.

(다음에서 상속됨 Type)
IsInstanceOfType(Object)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsMarshalByRefImpl()

IsMarshalByRef 속성을 구현하고, Type이 참조에 의해 마샬링되는지 여부를 확인합니다.

(다음에서 상속됨 Type)
IsPointerImpl()

파생 클래스에서 재정의되면, IsPointer 속성을 구현하고 Type이 포인터인지를 확인합니다.

IsPointerImpl()

파생 클래스에서 재정의되면, IsPointer 속성을 구현하고 Type이 포인터인지를 확인합니다.

(다음에서 상속됨 Type)
IsPrimitiveImpl()

파생 클래스에서 재정의되면, IsPrimitive 속성을 구현하고 Type이 기본 형식 중 하나인지를 확인합니다.

IsPrimitiveImpl()

파생 클래스에서 재정의되면, IsPrimitive 속성을 구현하고 Type이 기본 형식 중 하나인지를 확인합니다.

(다음에서 상속됨 Type)
IsSubclassOf(Type)

이 형식이 지정된 형식에서 파생되었는지 여부를 확인합니다.

IsSubclassOf(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

(다음에서 상속됨 TypeInfo)
IsValueTypeImpl()

IsValueType 속성을 구현하고 Type이 값 형식인지 여부, 즉 클래스 또는 인터페이스가 아닌지 여부를 확인합니다.

(다음에서 상속됨 Type)
MakeArrayType()

하한이 0인 현재 형식의 1차원 배열을 나타내는 Type 개체를 반환합니다.

MakeArrayType()

하한이 0인 현재 형식의 1차원 배열을 나타내는 Type 개체를 반환합니다.

(다음에서 상속됨 Type)
MakeArrayType(Int32)

지정된 차수의 현재 형식 배열을 나타내는 Type 개체를 반환합니다.

MakeArrayType(Int32)

지정된 차수의 현재 형식 배열을 나타내는 Type 개체를 반환합니다.

(다음에서 상속됨 Type)
MakeByRefType()

ref 매개 변수(Visual Basic의 경우 ByRef) 매개 변수로 전달될 때 현재 형식을 나타내는 Type 개체를 반환합니다.

MakeByRefType()

Type(Visual Basic의 경우 ref) 매개 변수로 전달될 때 현재 형식을 나타내는 ByRef 개체를 반환합니다.

(다음에서 상속됨 Type)
MakeGenericType(Type[])

형식 배열의 요소를 현재 제네릭 형식 정의의 형식 매개 변수로 대체하며 생성된 결과 형식을 반환합니다.

MakeGenericType(Type[])

형식 배열의 요소를 현재 제네릭 형식 정의의 형식 매개 변수로 대체하며 생성된 형식을 나타내는 Type 개체를 반환합니다.

(다음에서 상속됨 Type)
MakePointerType()

현재 형식에 대한 관리되지 않는 포인터의 형식을 나타내는 Type 개체를 반환합니다.

MakePointerType()

현재 형식에 대한 포인터를 나타내는 Type 개체를 반환합니다.

(다음에서 상속됨 Type)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
SetCustomAttribute(ConstructorInfo, Byte[])

지정된 사용자 지정 특성 blob을 사용하여 사용자 지정 특성을 설정합니다.

SetCustomAttribute(CustomAttributeBuilder)

사용자 지정 특성 작성기를 사용하여 사용자 지정 특성을 설정합니다.

SetCustomAttributeCore(ConstructorInfo, ReadOnlySpan<Byte>)

파생 클래스에서 재정의되는 경우 이 어셈블리에서 사용자 지정 특성을 설정합니다.

SetParent(Type)

현재 생성 중인 형식의 기본 형식을 설정합니다.

SetParentCore(Type)

파생 클래스에서 재정의되는 경우 현재 생성 중인 형식의 기본 형식을 설정합니다.

ToString()

네임스페이스를 제외한 형식의 이름을 반환합니다.

명시적 인터페이스 구현

_MemberInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당하는 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 MemberInfo)
_MemberInfo.GetType()

Type 클래스를 나타내는 MemberInfo 개체를 가져옵니다.

(다음에서 상속됨 MemberInfo)
_MemberInfo.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 MemberInfo)
_MemberInfo.GetTypeInfoCount(UInt32)

개체에서 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 MemberInfo)
_MemberInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에서 노출하는 메서드와 속성에 대한 액세스를 제공합니다.

(다음에서 상속됨 MemberInfo)
_Type.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당하는 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 Type)
_Type.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 Type)
_Type.GetTypeInfoCount(UInt32)

개체에서 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 Type)
_Type.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에서 노출하는 메서드와 속성에 대한 액세스를 제공합니다.

(다음에서 상속됨 Type)
_TypeBuilder.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당하는 디스패치 식별자 집합에 매핑합니다.

_TypeBuilder.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

_TypeBuilder.GetTypeInfoCount(UInt32)

개체에서 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

_TypeBuilder.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에서 노출하는 메서드와 속성에 대한 액세스를 제공합니다.

ICustomAttributeProvider.GetCustomAttributes(Boolean)

명명된 특성을 제외하고 이 멤버에 정의된 모든 사용자 지정 특성의 배열을 반환하거나 사용자 지정 특성이 없는 경우 빈 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

형식으로 식별되는 이 멤버에 정의된 사용자 지정 특성의 배열을 반환하거나 해당 형식의 사용자 지정 특성이 없는 경우 빈 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
ICustomAttributeProvider.IsDefined(Type, Boolean)

하나 이상의 attributeType 인스턴스가 이 멤버에 대해 정의되는지 여부를 나타냅니다.

(다음에서 상속됨 MemberInfo)
IReflectableType.GetTypeInfo()

현재 형식의 표현을 TypeInfo 개체로 반환합니다.

(다음에서 상속됨 TypeInfo)

확장 메서드

GetCustomAttribute(MemberInfo, Type)

지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.

GetCustomAttribute(MemberInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttribute<T>(MemberInfo)

지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.

GetCustomAttribute<T>(MemberInfo, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes(MemberInfo)

지정된 멤버에 적용된 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(MemberInfo, Boolean)

사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes(MemberInfo, Type)

지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(MemberInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes<T>(MemberInfo)

지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes<T>(MemberInfo, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.

IsDefined(MemberInfo, Type)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지 여부를 나타냅니다.

IsDefined(MemberInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지, 또는 선택적으로 상위 항목에 적용되었는지 여부를 결정합니다.

GetTypeInfo(Type)

지정된 형식의 TypeInfo 표현을 반환합니다.

GetMetadataToken(MemberInfo)

사용 가능한 경우 지정된 멤버의 메타데이터 토큰을 가져옵니다.

HasMetadataToken(MemberInfo)

지정된 멤버에 대해 메타데이터 토큰을 사용할 수 있는지를 나타내는 값을 반환합니다.

GetRuntimeEvent(Type, String)

지정된 이벤트를 나타내는 개체를 검색합니다.

GetRuntimeEvents(Type)

지정된 형식에서 정의된 모든 메소드를 나타내는 컬렉션을 검색합니다.

GetRuntimeField(Type, String)

지정된 필드를 나타내는 개체를 검색합니다.

GetRuntimeFields(Type)

지정된 형식에서 정의된 모든 메소드를 나타내는 컬렉션을 검색합니다.

GetRuntimeInterfaceMap(TypeInfo, Type)

지정된 형식과 지정된 인터페이스에 대한 인터페이스 매핑을 반환합니다.

GetRuntimeMethod(Type, String, Type[])

지정된 메서드를 나타내는 개체를 검색합니다.

GetRuntimeMethods(Type)

지정된 형식에 정의된 모든 메소드를 나타내는 컬렉션을 검색합니다.

GetRuntimeProperties(Type)

지정된 형식에서 정의된 모든 속성을 나타내는 컬렉션을 검색합니다.

GetRuntimeProperty(Type, String)

지정된 속성을 나타내는 개체를 검색합니다.

GetConstructor(Type, Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetConstructors(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetConstructors(Type, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetDefaultMembers(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetEvent(Type, String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetEvent(Type, String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetEvents(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetEvents(Type, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetField(Type, String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetField(Type, String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetFields(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetFields(Type, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetGenericArguments(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetInterfaces(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMember(Type, String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMember(Type, String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMembers(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMembers(Type, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMethod(Type, String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMethod(Type, String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMethod(Type, String, Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMethods(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetMethods(Type, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetNestedType(Type, String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetNestedTypes(Type, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetProperties(Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetProperties(Type, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetProperty(Type, String)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetProperty(Type, String, BindingFlags)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetProperty(Type, String, Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

GetProperty(Type, String, Type, Type[])

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

IsAssignableFrom(Type, Type)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

IsInstanceOfType(Type, Object)

런타임 시 클래스의 새 인스턴스를 정의하고 만듭니다.

적용 대상

추가 정보