From 94b632264769b6d3c0731e93e927821c612dd681 Mon Sep 17 00:00:00 2001 From: Artem Bukhonov Date: Sat, 11 Feb 2017 01:59:06 +0300 Subject: [PATCH] Diagnostics in SetValue() of NullValueReference and LiteralValueReference (cherry picked from commit 31019a1) --- .../Mono.Debugging.Evaluation/LiteralValueReference.cs | 2 +- Mono.Debugging/Mono.Debugging.Evaluation/NullValueReference.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mono.Debugging/Mono.Debugging.Evaluation/LiteralValueReference.cs b/Mono.Debugging/Mono.Debugging.Evaluation/LiteralValueReference.cs index d4d76f0da..74a54beb3 100644 --- a/Mono.Debugging/Mono.Debugging.Evaluation/LiteralValueReference.cs +++ b/Mono.Debugging/Mono.Debugging.Evaluation/LiteralValueReference.cs @@ -108,7 +108,7 @@ public override object Value { return value; } set { - throw new NotSupportedException (); + throw new NotSupportedException ("Assignment to a literal is not possible"); } } diff --git a/Mono.Debugging/Mono.Debugging.Evaluation/NullValueReference.cs b/Mono.Debugging/Mono.Debugging.Evaluation/NullValueReference.cs index e6f7f359f..271af726d 100644 --- a/Mono.Debugging/Mono.Debugging.Evaluation/NullValueReference.cs +++ b/Mono.Debugging/Mono.Debugging.Evaluation/NullValueReference.cs @@ -50,7 +50,7 @@ public override object Value { return obj; } set { - throw new NotSupportedException (); + throw new NotSupportedException ("Assignment to the null literal is not possible"); } }