Beispiel #1
0
        public FieldInfoMirror[] GetFields()
        {
            if (fields != null)
            {
                return(fields);
            }

            string[] names;
            long[]   types;
            int[]    attrs;
            long[]   ids = vm.conn.Type_GetFields(id, out names, out types, out attrs);

            FieldInfoMirror[] res = new FieldInfoMirror [ids.Length];
            for (int i = 0; i < res.Length; ++i)
            {
                res [i] = new FieldInfoMirror(this, ids [i], names [i], vm.GetType(types [i]), (FieldAttributes)attrs [i]);
            }

            fields = res;
            return(fields);
        }
Beispiel #2
0
 public void SetValue(FieldInfoMirror field, Value value)
 {
     SetValues(new FieldInfoMirror [] { field }, new Value [] { value });
 }
Beispiel #3
0
 public Value GetValue(FieldInfoMirror field)
 {
     return(GetValues(new FieldInfoMirror [] { field }) [0]);
 }
Beispiel #4
0
 internal CustomAttributeNamedArgumentMirror(PropertyInfoMirror prop, FieldInfoMirror field, CustomAttributeTypedArgumentMirror arg)
 {
     this.arg   = arg;
     this.prop  = prop;
     this.field = field;
 }