Пример #1
0
 public DebuggerValue(Debugger debugger, CorValue value)
 {
     debugger.Dispatcher.VerifyAccess();
     this.debugger    = debugger;
     this.CorValue    = value;
     this.hashCode    = value.GetHashCode();
     this.address     = value.Address;
     this.size        = value.Size;
     this.elementType = (CorElementType)value.ElementType;
     this.vflags      = 0;
     if (value.IsGeneric)
     {
         this.vflags |= VFlags.Generic;
     }
     if (value.IsReference)
     {
         this.vflags |= VFlags.Reference;
         if (value.IsNull)
         {
             this.vflags |= VFlags.Null;
         }
     }
     if (value.IsHandle)
     {
         this.vflags |= VFlags.Handle;
     }
     if (value.IsArray)
     {
         this.vflags |= VFlags.Array;
     }
     if (value.IsBox)
     {
         this.vflags |= VFlags.Box;
     }
     if (value.IsString)
     {
         this.vflags |= VFlags.String;
     }
     if (value.IsObject)
     {
         this.vflags |= VFlags.Object;
         if (value.IsValueClass)
         {
             this.vflags |= VFlags.ValueClass;
         }
     }
     if (value.IsContext)
     {
         this.vflags |= VFlags.Context;
     }
     if (value.IsComObject)
     {
         this.vflags |= VFlags.ComObject;
     }
     if (value.IsExceptionObject)
     {
         this.vflags |= VFlags.ExObject;
     }
     if (value.IsHeap)
     {
         this.vflags |= VFlags.Heap;
     }
 }
Пример #2
0
		public DebuggerValue(Debugger debugger, CorValue value) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			CorValue = value;
			hashCode = value.GetHashCode();
			address = value.Address;
			size = value.Size;
			elementType = (CorElementType)value.ElementType;
			vflags = 0;
			if (value.IsGeneric)
				vflags |= VFlags.Generic;
			if (value.IsReference) {
				vflags |= VFlags.Reference;
				if (value.IsNull)
					vflags |= VFlags.Null;
			}
			if (value.IsHandle)
				vflags |= VFlags.Handle;
			if (value.IsArray)
				vflags |= VFlags.Array;
			if (value.IsBox)
				vflags |= VFlags.Box;
			if (value.IsString)
				vflags |= VFlags.String;
			if (value.IsObject) {
				vflags |= VFlags.Object;
				if (value.IsValueClass)
					vflags |= VFlags.ValueClass;
			}
			if (value.IsContext)
				vflags |= VFlags.Context;
			if (value.IsComObject)
				vflags |= VFlags.ComObject;
			if (value.IsExceptionObject)
				vflags |= VFlags.ExObject;
			if (value.IsHeap)
				vflags |= VFlags.Heap;
		}