public DynamicTypeInfo WithType(string typeName)
        {
            var result = new DynamicTypeInfo(typeName, _moduleBuilder);

            _types.Add(result);
            return(result);
        }
        public DynamicConstructorInfo(DynamicTypeInfo dynamicTypeInfo, params Type[] constructorArgumentTypes)
        {
            DynamicTypeInfo = dynamicTypeInfo;
#if DEBUG
            Console.WriteLine("{0}::.ctor", dynamicTypeInfo.TypeName);
#endif
            _parametersField.AddRange(constructorArgumentTypes);
            InitConstructorBuilder(constructorArgumentTypes);
        }
Exemple #3
0
 public DynamicPropertyInfo(
     DynamicTypeInfo dti,
     string name,
     Type type)
 {
     Owner = dti;
     Name  = name;
     Type  = type;
 }
Exemple #4
0
 public DynamicFieldInfo(
     DynamicTypeInfo dti,
     string name,
     Type type,
     FieldBuilder fieldBuilder = null)
 {
     DynamicTypeInfo = dti;
     Name            = name;
     Type            = type;
     FieldBuilder    = fieldBuilder;
 }
Exemple #5
0
        public DynamicMethodInfo(
            DynamicTypeInfo dynamicTypeInfo,
            string methodName
            )
            : this()
        {
#if DEBUG
            Console.WriteLine(".method {0}", methodName);
#endif

            DynamicTypeInfo = dynamicTypeInfo;
            MethodName      = methodName;
        }