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); }
public DynamicPropertyInfo( DynamicTypeInfo dti, string name, Type type) { Owner = dti; Name = name; Type = type; }
public DynamicFieldInfo( DynamicTypeInfo dti, string name, Type type, FieldBuilder fieldBuilder = null) { DynamicTypeInfo = dti; Name = name; Type = type; FieldBuilder = fieldBuilder; }
public DynamicMethodInfo( DynamicTypeInfo dynamicTypeInfo, string methodName ) : this() { #if DEBUG Console.WriteLine(".method {0}", methodName); #endif DynamicTypeInfo = dynamicTypeInfo; MethodName = methodName; }