Exemplo n.º 1
0
        static public FieldDefinition AddField(this TypeDefinition item, FieldDefinition field, IEnumerable <Instruction> instructions = null)
        {
            item.Fields.AddAndGet(field);
            field.AddLoadInitializer(instructions);

            return(field);
        }
Exemplo n.º 2
0
 static public void AddLoadInitializer(this FieldDefinition item, params Instruction[] instructions)
 {
     item.AddLoadInitializer((IEnumerable <Instruction>)instructions);
 }