예제 #1
0
 public VariableValueReference(EvaluationContext ctx, CorValRef var, string name, ObjectValueFlags flags)
     : base(ctx)
 {
     this.flags = flags;
     this.var   = var;
     this.name  = name;
 }
		public VariableValueReference (EvaluationContext ctx, CorValRef var, string name, ObjectValueFlags flags)
			: base (ctx)
		{
			this.flags = flags;
			this.var = var;
			this.name = name;
		}
		public FieldValueReference (EvaluationContext ctx, CorValRef thisobj, CorDebugType type, FieldDefinition field, string vname, ObjectValueFlags vflags) : base (ctx)
		{
			this.thisobj = thisobj;
			this.type = type;
			this.field = field;
			this.vname = vname;
			if (field.IsStatic)
				this.thisobj = null;

			flags = vflags | GetFlags (field);

			loader = delegate {
				return ((CorValRef)Value).Val;
			};
		}
예제 #4
0
        public FieldValueReference(EvaluationContext ctx, CorValRef thisobj, CorDebugType type, FieldDefinition field, string vname, ObjectValueFlags vflags) : base(ctx)
        {
            this.thisobj = thisobj;
            this.type    = type;
            this.field   = field;
            this.vname   = vname;
            if (field.IsStatic)
            {
                this.thisobj = null;
            }

            flags = vflags | GetFlags(field);

            loader = delegate {
                return(((CorValRef)Value).Val);
            };
        }
예제 #5
0
        public PropertyValueReference(EvaluationContext ctx, PropertyDefinition prop, CorValRef thisobj, CorDebugType declaringType, CorValRef[] index)
            : base(ctx)
        {
            this.prop          = prop;
            this.declaringType = declaringType;
            this.module        = declaringType.Class.Assembly;
            this.index         = index;
            if (!prop.GetMethod.IsStatic)
            {
                this.thisobj = thisobj;
            }

            flags = GetFlags(prop);

            loader = delegate {
                return(((CorValRef)Value).Val);
            };
        }
예제 #6
0
 public ArrayAdaptor(EvaluationContext ctx, CorValRef obj, CorDebugValueArray array)
 {
     this.ctx   = (CorEvaluationContext)ctx;
     this.array = array;
     this.obj   = obj;
 }
		public StringAdaptor (EvaluationContext ctx, CorValRef obj, CorDebugValueString str)
		{
			this.ctx = (CorEvaluationContext)ctx;
			this.str = str;
			this.obj = obj;
		}
		public ArrayAdaptor (EvaluationContext ctx, CorValRef obj, CorDebugValueArray array)
		{
			this.ctx = (CorEvaluationContext)ctx;
			this.array = array;
			this.obj = obj;
		}
예제 #9
0
 public FieldValueReference(EvaluationContext ctx, CorValRef thisobj, CorDebugType type, FieldDefinition field)
     : this(ctx, thisobj, type, field, null, ObjectValueFlags.Field)
 {
 }
예제 #10
0
 public void SetValue(CorEvaluationContext ctx, CorValRef corValRef)
 {
     throw new NotImplementedException();
 }
예제 #11
0
 public PropertyValueReference(EvaluationContext ctx, PropertyDefinition prop, CorValRef thisobj, CorDebugType declaringType)
     : this(ctx, prop, thisobj, declaringType, null)
 {
 }
		public FieldValueReference (EvaluationContext ctx, CorValRef thisobj, CorDebugType type, FieldDefinition field)
			: this (ctx, thisobj, type, field, null, ObjectValueFlags.Field)
		{
		}
		public PropertyValueReference (EvaluationContext ctx, PropertyDefinition prop, CorValRef thisobj, CorDebugType declaringType, CorValRef[] index)
				: base (ctx)
		{
			this.prop = prop;
			this.declaringType = declaringType;
			this.module = declaringType.Class.Assembly;
			this.index = index;
			if (!prop.GetMethod.IsStatic)
				this.thisobj = thisobj;
	
			flags = GetFlags (prop);
	
			loader = delegate {
				return ((CorValRef)Value).Val;
			};
		}
		public PropertyValueReference (EvaluationContext ctx, PropertyDefinition prop, CorValRef thisobj, CorDebugType declaringType)
				: this (ctx, prop, thisobj, declaringType, null)
		{
		}
예제 #15
0
        public void SetElement(int[] indices, object val)
        {
            CorValRef it = (CorValRef)GetElement(indices);

            it.SetValue(ctx, (CorValRef)val);
        }
예제 #16
0
 public StringAdaptor(EvaluationContext ctx, CorValRef obj, CorDebugValueString str)
 {
     this.ctx = (CorEvaluationContext)ctx;
     this.str = str;
     this.obj = obj;
 }
예제 #17
0
		public void SetValue (CorEvaluationContext ctx, CorValRef corValRef)
		{
			throw new NotImplementedException ();
		}