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; })); }
public ArrayAdaptor(EvaluationContext ctx, CorValRef obj, CorDebugValueArray array) { this.ctx = (CorEvaluationContext)ctx; this.array = array; this.obj = obj; }