Exemple #1
0
        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);
        }
Exemple #2
0
 public ZCFieldInfo(string name, ZAClassInfo ztype, FieldBuilder builder)
 {
     FieldZName   = name;
     FieldZType   = ztype;
     FieldBuilder = builder;
 }