38 references to GetType
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider.UnitTests (26)
DynamicViewTests.cs (2)
218
value = CreateErrorValue(runtime.
GetType
(obj.GetType()), "Function evaluation timed out");
233
getMemberValue: (_, m) => (m == "Items") ? CreateErrorValue(runtime.
GetType
(typeof(Array)), "Function evaluation timed out") : null);
ExpansionTests.cs (5)
1370
var type = runtime.
GetType
(typeof(ImmutableArray<>)).MakeGenericType(runtime.
GetType
(typeof(int)));
1717
var type = runtime.
GetType
(typeof(NullReferenceException));
1722
var evalResult = FormatResult("c?.str.Length", value, runtime.
GetType
(typeof(int?)));
2325
VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue getMemberValue(VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue v, string m) => (m == "P") ? CreateErrorValue(runtime.
GetType
(typeof(int?)), "Function evaluation timed out") : null;
FormatSpecifierTests.cs (15)
21
var stringType = runtime.
GetType
(typeof(string));
93
var charType = runtime.
GetType
(typeof(char));
177
var value = CreateDkmClrValue(1, type: runtime.
GetType
(typeof(int)));
183
value = CreateDkmClrValue(string.Empty, type: runtime.
GetType
(typeof(string)));
189
value = CreateDkmClrValue(new object[] { 1, 2, 3 }, type: runtime.
GetType
(typeof(object)).MakeArrayType());
264
var value = CreateDkmClrValue(new object(), type: runtime.
GetType
(typeof(object)));
270
value = CreateDkmClrValue("", type: runtime.
GetType
(typeof(string)));
276
value = CreateDkmClrValue(new[] { 1 }, type: runtime.
GetType
(typeof(int[])));
282
value = CreateDkmClrValue(new System.Collections.ArrayList(new[] { 2 }), type: runtime.
GetType
(typeof(System.Collections.ArrayList)));
291
value = CreateDkmClrValue(new System.Collections.Generic.List<object>(new object[] { 3 }), type: runtime.
GetType
(typeof(System.Collections.Generic.List<object>)));
300
value = CreateDkmClrValue(1, type: runtime.
GetType
(typeof(System.Nullable<>)).MakeGenericType(runtime.
GetType
(typeof(int))));
359
var type = runtime.GetType("S`1").MakeGenericType(runtime.
GetType
(typeof(int)));
522
return CreateErrorValue(runtime.
GetType
(typeof(System.Collections.ArrayList)), "Property 'P' evaluation timed out");
524
return CreateErrorValue(runtime.
GetType
(typeof(string)), "Property 'Q' evaluation timed out");
ResultsViewTests.cs (4)
1614
VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue getMemberValue(VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue v, string m) => (m == "P") ? CreateErrorValue(runtime.
GetType
(typeof(System.Collections.ArrayList)), "Function evaluation timed out") : null;
1649
VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue getMemberValue(VisualStudio.Debugger.Evaluation.ClrCompilation.DkmClrValue v, string m) => (m == "Items") ? CreateErrorValue(runtime.
GetType
(typeof(object)).MakeArrayType(), string.Format("Unable to evaluate '{0}'", m)) : null;
1847
var propertyType = runtime.
GetType
(propertyInfo.PropertyType);
1848
var valueType = (propertyValue == null) ? propertyType : runtime.
GetType
(propertyValue.GetType());
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrRuntimeInstance.cs (1)
99
result = result.MakeGenericType(typeArguments.Select(this.
GetType
).ToArray());
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ResultProvider.UnitTests (11)
DynamicViewTests.vb (2)
205
value = CreateErrorValue(runtime.
GetType
(obj.GetType()), "Function evaluation timed out")
219
getMemberValue:=Function(v, m) If(m = "Items", CreateErrorValue(runtime.
GetType
(GetType(Array)), "Function evaluation timed out"), Nothing))
FormatSpecifierTests.vb (2)
19
Dim stringType = runtime.
GetType
(GetType(String))
78
Dim charType = runtime.
GetType
(GetType(Char))
ObjectFavoritesTests.vb (6)
49
type:=runtime.
GetType
(type))
100
type:=runtime.
GetType
(type))
148
type:=runtime.
GetType
(type))
188
type:=runtime.
GetType
(type))
219
type:=runtime.
GetType
(type))
258
type:=runtime.
GetType
(type))
ResultsViewTests.vb (1)
126
Dim getMemberValue As GetMemberValueDelegate = Function(v, m) If(m = "Items", CreateErrorValue(runtime.
GetType
(GetType(Object)).MakeArrayType(), String.Format("Unable to evaluate '{0}'", m)), Nothing)