Ejemplo n.º 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;
			};
		}
Ejemplo n.º 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);
            };
        }
Ejemplo n.º 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);
            };
        }
Ejemplo n.º 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;
		}
Ejemplo n.º 9
0
 public FieldValueReference(EvaluationContext ctx, CorValRef thisobj, CorDebugType type, FieldDefinition field)
     : this(ctx, thisobj, type, field, null, ObjectValueFlags.Field)
 {
 }
Ejemplo n.º 10
0
 public void SetValue(CorEvaluationContext ctx, CorValRef corValRef)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 11
0
 public PropertyValueReference(EvaluationContext ctx, PropertyDefinition prop, CorValRef thisobj, CorDebugType declaringType)
     : this(ctx, prop, thisobj, declaringType, null)
 {
 }
Ejemplo n.º 12
0
		public FieldValueReference (EvaluationContext ctx, CorValRef thisobj, CorDebugType type, FieldDefinition field)
			: this (ctx, thisobj, type, field, null, ObjectValueFlags.Field)
		{
		}
Ejemplo n.º 13
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;
			};
		}
Ejemplo n.º 14
0
		public PropertyValueReference (EvaluationContext ctx, PropertyDefinition prop, CorValRef thisobj, CorDebugType declaringType)
				: this (ctx, prop, thisobj, declaringType, null)
		{
		}
Ejemplo n.º 15
0
        public void SetElement(int[] indices, object val)
        {
            CorValRef it = (CorValRef)GetElement(indices);

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