public ZCFieldInfo DefineFieldPublic(string name, ZAClassInfo ztype) { Type varSharpType = ZTypeUtil.GetTypeOrBuilder(ztype); FieldBuilder field = ClassBuilder.DefineField(name, varSharpType, FieldAttributes.Public); ZCFieldInfo zf = new ZCFieldInfo(name, (ZAClassInfo)ztype, field); _ZCompilingFields.Add(zf); return(zf); }
public ZLClassInfo MakeGenericType(params ZType[] argZTypes) { var args = argZTypes.Select(U => ZTypeUtil.GetTypeOrBuilder(U)).ToArray(); Type newtype = this.SharpType.MakeGenericType(args); ZLClassInfo newclassinfo = new ZLClassInfo(newtype, newtype, IsStatic); newclassinfo._GenericTypeDict = new Dictionary <string, Type>(); Type[] typeArguments = this.SharpType.GetGenericArguments(); for (int i = 0; i < typeArguments.Length; i++) { newclassinfo._GenericTypeDict.Add(typeArguments[i].Name, args[i]); } return(newclassinfo); }
public Type[] GetParameterTypes() { return(ZParams.Select(u => ZTypeUtil.GetTypeOrBuilder(u.ZParamType)).ToArray()); }