Пример #1
0
        public object GetElement(int[] indices)
        {
            return(new CorValRef(delegate {
                // If we have a zombie state array, reload it.
                if (!obj.IsValid)
                {
                    obj.Reload();
                    array = MicroFrameworkObjectValueAdaptor.GetRealObject(ctx, obj) as CorDebugValueArray;
                }

                return array != null ? array.GetElement(indices) : null;
            }));
        }
Пример #2
0
 public ArrayAdaptor(EvaluationContext ctx, CorValRef obj, CorDebugValueArray array)
 {
     this.ctx   = (CorEvaluationContext)ctx;
     this.array = array;
     this.obj   = obj;
 }