Example #1
0
        public void Emit(OpCode opcode, FieldInfo field)
        {
            ArgumentUtility.CheckNotNull("field", field);

            var emittableOperand = _emittableOperandProvider.GetEmittableField(field);

            _innerILGenerator.Emit(opcode, emittableOperand);
        }
        public FieldInfo GetEmittableField(FieldInfo field)
        {
            ArgumentUtility.CheckNotNull("field", field);

            var emittableField = _emittableOperandProvider.GetEmittableField(field);

            CheckStrongNameCompatibility(emittableField.DeclaringType);

            return(emittableField);
        }