示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="value">Value</param>
 /// <param name="valueIsException">true if <paramref name="value"/> contains the thrown exception instead of the expected return value / field value</param>
 public DbgDotNetValueResult(DbgDotNetValue value, bool valueIsException)
 {
     Value            = value ?? throw new ArgumentNullException(nameof(value));
     ValueIsException = valueIsException;
     ErrorMessage     = null;
 }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="value">Value</param>
 public DbgDotNetCreateValueResult(DbgDotNetValue value)
 {
     Value = value ?? throw new ArgumentNullException(nameof(value));
     Error = null;
 }
 /// <summary>
 /// Creates an exception result
 /// </summary>
 /// <param name="value">Exception value</param>
 /// <returns></returns>
 public static DbgDotNetValueResult CreateException(DbgDotNetValue value) =>
 new DbgDotNetValueResult(value, valueIsException: true);
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="value">Exception value</param>
 /// <param name="id">Exception id</param>
 /// <param name="flags">Flags</param>
 public DbgDotNetExceptionInfo(DbgDotNetValue value, uint id, DbgDotNetExceptionInfoFlags flags)
 {
     Value = value ?? throw new ArgumentNullException(nameof(value));
     Id    = id;
     Flags = flags;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="id">Return value id</param>
 /// <param name="method">Method</param>
 /// <param name="value">Value returned by <paramref name="method"/></param>
 public DbgDotNetReturnValueInfo(uint id, DmdMethodBase method, DbgDotNetValue value)
 {
     Id     = id;
     Method = method ?? throw new ArgumentNullException(nameof(method));
     Value  = value ?? throw new ArgumentNullException(nameof(value));
 }