Пример #1
0
 public override DbgDotNetValue?GetValueAddress(int index, DmdType targetType)
 {
     if ((uint)index < (uint)realLocalVariables.Count)
     {
         return(localsProvider.GetValueAddress(index, targetType));
     }
     return(null);
 }
Пример #2
0
        public override ILValue LoadArgumentAddress(int index, DmdType type)
        {
            var addrValue = argumentsProvider.GetValueAddress(index, type);

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