Пример #1
0
 public DebugValueEvaluationResultRepresentation GetRepresentation(DebugValueRepresentationKind kind = DebugValueRepresentationKind.Normal)
 {
     if (_reprObj == null)
     {
         throw new InvalidOperationException("Evaluation result does not have an associated representation.");
     }
     return(new DebugValueEvaluationResultRepresentation(_reprObj, kind));
 }
Пример #2
0
 public DebugValueEvaluationResultRepresentation GetRepresentation(DebugValueRepresentationKind kind = DebugValueRepresentationKind.Normal)
 {
     return(new DebugValueEvaluationResultRepresentation(_reprObj, kind));
 }
Пример #3
0
 public DebugValueEvaluationResultRepresentation(JObject repr, DebugValueRepresentationKind kind)
 {
     Deparse  = repr.Value <string>("deparse");
     ToString = repr.Value <string>("toString");
     Str      = repr.Value <string>("str");
 }
 public DebugValueEvaluationResultRepresentation GetRepresentation(DebugValueRepresentationKind kind) {
     return new DebugValueEvaluationResultRepresentation(_reprObj, kind);
 }
 public DebugValueEvaluationResultRepresentation(JObject repr, DebugValueRepresentationKind kind) {
     Deparse = repr.Value<string>("deparse");
     ToString = repr.Value<string>("toString");
     Str = repr.Value<string>("str");
     if (kind == DebugValueRepresentationKind.Normal) {
         if (!string.IsNullOrEmpty(Deparse)) {
             Deparse = Deparse.ToUnicodeQuotes();
         }
         if (!string.IsNullOrEmpty(ToString)) {
             ToString = ToString.ToUnicodeQuotes();
         }
         if (!string.IsNullOrEmpty(Str)) {
             Str = Str.ToUnicodeQuotes();
         }
     }
 }