Пример #1
0
        public override ILValue LoadStaticFieldAddress(DmdFieldInfo field)
        {
            var addrValue = runtime.LoadFieldAddress(evalInfo, null, field);

            if (addrValue != null)
            {
                Debug.Assert(addrValue.Type.IsByRef);
                return(new ByRefILValueImpl(this, RecordValue(addrValue)));
            }
            return(new StaticFieldAddress(this, field));
        }