431 references to XamlType
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
76
:
base
(type, schema)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
415
:
base
(underlyingType, schemaContext)
System.Xaml.Tests (429)
Common\SubXamlType.cs (1)
17
public SubXamlType(Type? underlyingType, XamlSchemaContext? schemaContext) :
base
(underlyingType, schemaContext) { }
System\Xaml\Replacements\DateTimeConverter2Tests.cs (8)
22
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
41
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
51
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
63
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
82
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
92
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
102
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
110
var type = new
XamlType
(typeof(DateTime), new XamlSchemaContext());
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (9)
24
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
41
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
51
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
63
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
78
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
87
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
101
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
110
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
118
var type = new
XamlType
(typeof(DateTimeOffset), new XamlSchemaContext());
System\Xaml\Replacements\EventConverterTests.cs (10)
21
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
29
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
68
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
103
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
130
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
140
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
153
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
163
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
173
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
182
var type = new
XamlType
(typeof(Delegate), new XamlSchemaContext());
System\Xaml\Replacements\TypeListConverterTests.cs (7)
20
var type = new
XamlType
(typeof(Type[]), new XamlSchemaContext());
28
var type = new
XamlType
(typeof(Type[]), new XamlSchemaContext());
39
var type = new
XamlType
(typeof(Type[]), new XamlSchemaContext());
52
var type = new
XamlType
(typeof(Type[]), new XamlSchemaContext());
62
var type = new
XamlType
(typeof(Type[]), new XamlSchemaContext());
71
var type = new
XamlType
(typeof(Type[]), new XamlSchemaContext());
79
var type = new
XamlType
(typeof(Type[]), new XamlSchemaContext());
System\Xaml\Replacements\TypeTypeConverterTests.cs (16)
22
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
30
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
55
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
71
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
81
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
94
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
102
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
138
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
150
GetXamlTypeAction = (type) => new
XamlType
(typeof(short), new XamlSchemaContext())
177
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
207
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
225
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
249
var expectedType = new
XamlType
(typeof(int), new XamlSchemaContext());
258
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
268
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
277
var type = new
XamlType
(typeof(Type), new XamlSchemaContext());
System\Xaml\Replacements\TypeUriConverterTests.cs (2)
32
var normalType = new
XamlType
(typeof(Uri), new XamlSchemaContext());
39
var type = new
XamlType
(typeof(Uri), new XamlSchemaContext());
System\Xaml\Schema\XamlTypeInvokerTests.cs (64)
27
var type = new
XamlType
(typeof(ClassWithAttributes), new XamlSchemaContext());
51
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(ListAddGetEnumeratorClass), new XamlSchemaContext()));
91
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(object), new XamlSchemaContext()));
98
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(List<int>), new XamlSchemaContext()));
105
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(DictionaryAddGetEnumeratorClass), new XamlSchemaContext()));
141
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(object), new XamlSchemaContext()));
148
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(Dictionary<object, int>), new XamlSchemaContext()));
155
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(PublicClass), new XamlSchemaContext()));
163
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(PublicClass), new XamlSchemaContext()));
170
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(PrivateClass), new XamlSchemaContext()));
178
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(int), new XamlSchemaContext()));
194
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(NoDefaultConstructorClass), new XamlSchemaContext()));
224
new
XamlType
(typeof(int), new XamlSchemaContext()),
230
new
XamlType
(typeof(int), new XamlSchemaContext()),
235
new XamlTypeInvoker(new
XamlType
(typeof(int), new XamlSchemaContext())),
236
new
XamlType
(typeof(int), new XamlSchemaContext()),
243
new XamlTypeInvoker(new
XamlType
(typeof(List<int>), new XamlSchemaContext())),
244
new
XamlType
(typeof(int), new XamlSchemaContext()),
249
new XamlTypeInvoker(new
XamlType
(typeof(List<Array>), new XamlSchemaContext())),
250
new
XamlType
(typeof(int[]), new XamlSchemaContext()),
255
new XamlTypeInvoker(new
XamlType
(typeof(List<Array>), new XamlSchemaContext())),
256
new
XamlType
(typeof(object), new XamlSchemaContext()),
261
new XamlTypeInvoker(new
XamlType
(typeof(List<int>), new XamlSchemaContext())),
262
new
XamlType
(typeof(string), new XamlSchemaContext()),
267
new XamlTypeInvoker(new
XamlType
(typeof(ListAddGetEnumeratorClass), new XamlSchemaContext())),
268
new
XamlType
(typeof(object), new XamlSchemaContext()),
273
new XamlTypeInvoker(new
XamlType
(typeof(Dictionary<int, string>), new XamlSchemaContext())),
274
new
XamlType
(typeof(int[]), new XamlSchemaContext()),
279
new XamlTypeInvoker(new
XamlType
(typeof(Dictionary<int, string>), new XamlSchemaContext())),
280
new
XamlType
(typeof(KeyValuePair<int, string>), new XamlSchemaContext()),
285
new XamlTypeInvoker(new
XamlType
(typeof(DictionaryAddGetEnumeratorClass), new XamlSchemaContext())),
286
new
XamlType
(typeof(object), new XamlSchemaContext()),
295
new XamlTypeInvoker(new
XamlType
(type, new XamlSchemaContext())),
296
new
XamlType
(typeof(int), new XamlSchemaContext()),
301
new XamlTypeInvoker(new
XamlType
(type, new XamlSchemaContext())),
302
new
XamlType
(typeof(string), new XamlSchemaContext()),
311
new
XamlType
(typeof(string), new XamlSchemaContext()),
312
new
XamlType
(typeof(Array), new XamlSchemaContext()),
313
new
XamlType
(typeof(short), new XamlSchemaContext())
316
new
XamlType
(typeof(string), new XamlSchemaContext()),
321
new XamlTypeInvoker(new
XamlType
(type, new XamlSchemaContext())),
322
new
XamlType
(typeof(Array), new XamlSchemaContext()),
327
new XamlTypeInvoker(new
XamlType
(type, new XamlSchemaContext())),
328
new
XamlType
(typeof(int[]), new XamlSchemaContext()),
337
new
XamlType
(typeof(string), new XamlSchemaContext()),
338
new
XamlType
(typeof(Array), new XamlSchemaContext()),
339
new
XamlType
(typeof(double), new XamlSchemaContext())
342
new
XamlType
(typeof(int[]), new XamlSchemaContext()),
351
new
XamlType
(typeof(string), new XamlSchemaContext()),
352
new
XamlType
(typeof(Array), new XamlSchemaContext()),
353
new
XamlType
(typeof(double), new XamlSchemaContext())
356
new
XamlType
(typeof(double), new XamlSchemaContext()),
365
new
XamlType
(typeof(string), new XamlSchemaContext()),
366
new
XamlType
(typeof(Array), new XamlSchemaContext()),
367
new
XamlType
(typeof(double), new XamlSchemaContext())
370
new
XamlType
(typeof(object), new XamlSchemaContext()),
457
new XamlTypeInvoker(new
XamlType
(typeof(int), new XamlSchemaContext())),
464
new XamlTypeInvoker(new
XamlType
(typeof(ICollection<int>), new XamlSchemaContext())),
469
new XamlTypeInvoker(new
XamlType
(typeof(List<int>), new XamlSchemaContext())),
474
new XamlTypeInvoker(new
XamlType
(typeof(GetEnumeratorClass), new XamlSchemaContext())),
479
new XamlTypeInvoker(new
XamlType
(typeof(BadReturnGetEnumeratorClass), new XamlSchemaContext())),
484
new XamlTypeInvoker(new
XamlType
(typeof(TooManyParametersGetEnumeratorClass), new XamlSchemaContext())),
500
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(GetEnumeratorClass), new XamlSchemaContext()));
534
var invoker = new XamlTypeInvoker(new
XamlType
(typeof(object), new XamlSchemaContext()));
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (5)
51
new
XamlType
(typeof(int), context)
225
var type = new
XamlType
(typeof(int), new XamlSchemaContext());
248
var type = new
XamlType
(typeof(int), new XamlSchemaContext());
267
var type = new
XamlType
(typeof(int), new XamlSchemaContext());
276
var type = new
XamlType
(typeof(int), new XamlSchemaContext());
System\Xaml\Schema\XamlValueConverterTests.cs (5)
59
var type = new
XamlType
(typeof(string), new XamlSchemaContext());
68
var type = new
XamlType
(typeof(ConsoleColor), new XamlSchemaContext());
77
var type = new
XamlType
(typeof(ConsoleColor), new XamlSchemaContext());
85
var type = new
XamlType
(typeof(string), new XamlSchemaContext());
93
var type = new
XamlType
(typeof(ConsoleColor), new XamlSchemaContext());
System\Xaml\XamlBackgroundReaderTests.cs (2)
25
TypeResult = new
XamlType
(typeof(int), new XamlSchemaContext()),
27
MemberResult = new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false),
System\Xaml\XamlMemberTests.cs (97)
57
Assert.Equal(new
XamlType
(propertyInfo.DeclaringType, schemaContext), member.DeclaringType);
79
Assert.Equal(new
XamlType
(propertyInfo.DeclaringType, schemaContext), member.DeclaringType);
113
Assert.Equal(new
XamlType
(eventInfo.DeclaringType, schemaContext), member.DeclaringType);
135
Assert.Equal(new
XamlType
(eventInfo.DeclaringType, schemaContext), member.DeclaringType);
172
Assert.Equal(new
XamlType
(typeof(AccessorClass), schemaContext), member.DeclaringType);
195
Assert.Equal(new
XamlType
(typeof(AccessorClass), schemaContext), member.DeclaringType);
259
Assert.Equal(new
XamlType
(typeof(AccessorClass), schemaContext), member.DeclaringType);
280
Assert.Equal(new
XamlType
(typeof(AccessorClass), schemaContext), member.DeclaringType);
347
var member = new XamlMember(name, new
XamlType
(typeof(int), new XamlSchemaContext()), false);
355
var member = new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false);
390
var member = new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false);
396
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null };
397
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null };
425
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
571
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null };
572
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null };
600
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
694
var member = new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false);
737
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), false };
738
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), false };
755
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
805
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), false, false };
806
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), false, false };
832
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
858
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), true, true };
859
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), true, true };
963
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), false };
964
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), false };
1040
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), true, true };
1041
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), true, true };
1067
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1100
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), true, true };
1101
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), true, true };
1205
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), false };
1206
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), false };
1282
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null };
1283
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null };
1311
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1416
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), DesignerSerializationVisibility.Visible };
1417
yield return new object[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), DesignerSerializationVisibility.Visible };
1445
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1524
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), new
XamlType
(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()) };
1525
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), XamlLanguage.Object, XamlLanguage.Object };
1530
new
XamlType
(typeof(DataClass), new XamlSchemaContext()), new
XamlType
(typeof(DataClass), new XamlSchemaContext())
1535
new
XamlType
(typeof(string), new XamlSchemaContext()), new
XamlType
(typeof(string), new XamlSchemaContext())
1541
new
XamlType
(typeof(DataClass), new XamlSchemaContext()), new
XamlType
(typeof(DataClass), new XamlSchemaContext())
1546
new
XamlType
(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext())
1551
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true)
1560
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true)
1580
null, new
XamlType
(typeof(DataClass), new XamlSchemaContext())
1601
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null };
1602
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null };
1607
new
XamlType
(typeof(int), new XamlSchemaContext())
1612
new
XamlType
(typeof(int), new XamlSchemaContext())
1617
new
XamlType
(typeof(string), new XamlSchemaContext())
1622
new
XamlType
(typeof(int), new XamlSchemaContext())
1628
new
XamlType
(typeof(EventHandler), new XamlSchemaContext())
1633
new
XamlType
(typeof(string), new XamlSchemaContext())
1638
new
XamlType
(typeof(int), new XamlSchemaContext())
1643
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1650
new
XamlType
(typeof(string), new XamlSchemaContext())
1654
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1687
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object), null };
1688
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object), null };
1715
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1840
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null };
1841
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null };
1904
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null, null };
1905
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null, null };
1944
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1969
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null };
1970
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null };
2038
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false), null };
2039
yield return new object?[] { new SubXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true), null };
2066
new CustomXamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
2201
yield return new object?[] { member, new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false), false };
2226
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2244
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2245
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2250
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2251
new XamlMember("other", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2256
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2257
new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false),
2262
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2263
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), true),
2268
new XamlMember("Property", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2274
new XamlMember("Event", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2280
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2286
new XamlMember("name", new
XamlType
(typeof(DataClass), new XamlSchemaContext()), false),
2314
yield return new object[] { new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false) };
2315
yield return new object[] { new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), true) };
System\Xaml\XamlReaderTests.cs (2)
63
TypeResult = new
XamlType
(typeof(int), new XamlSchemaContext()),
65
MemberResult = new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false),
System\Xaml\XamlSchemaContextTests.cs (47)
448
new
XamlType
(typeof(ArrayExtension), new XamlSchemaContext())
453
new
XamlType
(typeof(ArrayExtension), new XamlSchemaContext())
458
new
XamlType
(typeof(MemberDefinition), new XamlSchemaContext())
463
new
XamlType
(typeof(NullExtension), new XamlSchemaContext())
468
new
XamlType
(typeof(NullExtension), new XamlSchemaContext())
473
new
XamlType
(typeof(PropertyDefinition), new XamlSchemaContext())
478
new
XamlType
(typeof(Reference), new XamlSchemaContext())
483
new
XamlType
(typeof(Reference), new XamlSchemaContext())
488
new
XamlType
(typeof(StaticExtension), new XamlSchemaContext())
493
new
XamlType
(typeof(StaticExtension), new XamlSchemaContext())
498
new
XamlType
(typeof(TypeExtension), new XamlSchemaContext())
503
new
XamlType
(typeof(TypeExtension), new XamlSchemaContext())
508
new
XamlType
(typeof(string), new XamlSchemaContext())
513
new
XamlType
(typeof(double), new XamlSchemaContext())
518
new
XamlType
(typeof(short), new XamlSchemaContext())
523
new
XamlType
(typeof(int), new XamlSchemaContext())
528
new
XamlType
(typeof(long), new XamlSchemaContext())
533
new
XamlType
(typeof(bool), new XamlSchemaContext())
538
new
XamlType
(typeof(XData), new XamlSchemaContext())
543
new
XamlType
(typeof(object), new XamlSchemaContext())
548
new
XamlType
(typeof(char), new XamlSchemaContext())
553
new
XamlType
(typeof(float), new XamlSchemaContext())
558
new
XamlType
(typeof(byte), new XamlSchemaContext())
563
new
XamlType
(typeof(decimal), new XamlSchemaContext())
568
new
XamlType
(typeof(Uri), new XamlSchemaContext())
573
new
XamlType
(typeof(TimeSpan), new XamlSchemaContext())
590
new
XamlType
(typeof(int), new XamlSchemaContext())
595
new
XamlType
(typeof(int), new XamlSchemaContext())
600
new
XamlType
(typeof(XamlSchemaContextTests), new XamlSchemaContext())
610
new
XamlType
(typeof(List<int>), new XamlSchemaContext())
618
new
XamlType
(typeof(List<int>[]), new XamlSchemaContext())
626
new
XamlType
(typeof(List<int>[,][]), new XamlSchemaContext())
634
new
XamlType
(typeof(List<int>[,][]), new XamlSchemaContext())
642
new
XamlType
(typeof(List<int>[,,]), new XamlSchemaContext())
677
new
XamlType
(typeof(PublicNestedClass), new XamlSchemaContext())
687
new
XamlType
(typeof(PublicNestedClass.PublicClass), new XamlSchemaContext())
709
new
XamlType
(typeof(XamlType), new XamlSchemaContext())
714
new
XamlType
(typeof(MemberDefinition), new XamlSchemaContext())
719
new
XamlType
(typeof(MemberDefinition), new XamlSchemaContext())
734
new
XamlType
(typeof(PropertyDefinition), new XamlSchemaContext())
739
new
XamlType
(typeof(PropertyDefinition), new XamlSchemaContext())
754
new
XamlType
(typeof(AmbientAttribute), new XamlSchemaContext())
858
new
XamlType
(typeof(int), new XamlSchemaContext())
868
new
XamlType
(typeof(int), new XamlSchemaContext())
878
new
XamlType
(typeof(int), new XamlSchemaContext())
886
new
XamlType
(typeof(int), new XamlSchemaContext())
998
Assert.Equal(new
XamlType
(underlyingType, new XamlSchemaContext()), type);
System\Xaml\XamlTypeTests.cs (152)
27
yield return new object?[] { "unknownTypeNamespace", "unknownTypeName", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext() };
83
yield return new object?[] { typeof(List<int>), new XamlSchemaContext(), "List", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) } };
84
yield return new object?[] { typeof(List<int>[][]), new XamlSchemaContext(), "List[][]", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) } };
91
var type = new
XamlType
(underlyingType, schemaContext);
102
yield return new object?[] { typeof(NestedClass), new XamlSchemaContext(), new XamlTypeInvoker(new
XamlType
(typeof(int), new XamlSchemaContext())), "XamlTypeTests+NestedClass", null };
103
yield return new object?[] { typeof(List<int>), new XamlSchemaContext(), XamlTypeInvoker.UnknownInvoker, "List", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) } };
104
yield return new object?[] { typeof(List<int>[][]), new XamlSchemaContext(), null, "List[][]", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) } };
130
Assert.Throws<ArgumentNullException>("underlyingType", () => new
XamlType
(null, new XamlSchemaContext()));
146
Assert.Throws<ArgumentNullException>("schemaContext", () => new
XamlType
(typeof(int), null));
176
var type = new
XamlType
(typeof(int), new XamlSchemaContext());
216
new
XamlType
(typeof(int), new XamlSchemaContext()),
221
new
XamlType
(typeof(int), new XamlSchemaContext(new XamlSchemaContextSettings
231
new
XamlType
(typeof(GlobalNamespaceClass), new XamlSchemaContext()),
236
new
XamlType
(typeof(GlobalNamespaceClass), new XamlSchemaContext(new XamlSchemaContextSettings
244
new
XamlType
(typeof(XamlTypeTests), new XamlSchemaContext()),
249
new
XamlType
(typeof(XamlTypeTests), new XamlSchemaContext(new XamlSchemaContextSettings
259
new
XamlType
(new ReflectionOnlyType(typeof(XamlTypeTests)), new XamlSchemaContext()),
264
new
XamlType
(new CustomType(typeof(XamlTypeTests))
294
new
XamlType
(createdDynamicType, dynamicCacheContext),
299
new
XamlType
(createdDynamicType, dynamicCacheContext),
443
new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
449
new XamlMember("keyName", new
XamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false)
455
new XamlMember("keyName", new
XamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false)
475
new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
481
new XamlMember("runtimeName", new
XamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false)
487
new XamlMember("runtimeName", new
XamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false)
507
new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
513
new XamlMember("uidName", new
XamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false)
519
new XamlMember("uidName", new
XamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false)
539
new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
545
new XamlMember("langName", new
XamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false)
551
new XamlMember("langName", new
XamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false)
1349
yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) } };
1362
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }
1373
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }
1391
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()) }
1397
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }
1402
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }
1407
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }
1412
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }
1705
yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(ValueType), new XamlSchemaContext()) };
1957
new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)
1991
new XamlMember("name", new
XamlType
(typeof(ClassWithUnknownContentPropertyAttribute), new XamlSchemaContext()), false)
2011
new XamlMember("name", new
XamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUnknownContentPropertyAttribute)), new XamlSchemaContext()), false)
2156
new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }
2185
new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }
2190
new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()) }
2195
new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }
2989
yield return new object?[] { new SubXamlType(typeof(int[]), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()) };
2990
yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
2991
yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()) };
2992
yield return new object?[] { new SubXamlType(typeof(AmbiguousIList), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
2994
yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
2995
yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
2996
yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
2997
yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new XamlSchemaContext()), new
XamlType
(typeof(string), new XamlSchemaContext()) };
2998
yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
3051
yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
3052
yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()) };
3053
yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()) };
3306
new
XamlType
(typeof(int), new XamlSchemaContext())
3335
new
XamlType
(typeof(int), new XamlSchemaContext())
3340
new
XamlType
(typeof(int), new XamlSchemaContext())
3345
new
XamlType
(typeof(int), new XamlSchemaContext())
3680
yield return new object?[] { new SubXamlType(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), 1, new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) } };
3683
yield return new object?[] { new SubXamlType(typeof(TypeExtension), new XamlSchemaContext()), 1, new XamlType[] { new
XamlType
(typeof(Type), new XamlSchemaContext()) } };
3689
yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 1, new XamlType[] { new
XamlType
(typeof(Type), new XamlSchemaContext()) } };
4222
yield return new object?[] { new SubXamlType(typeof(ConsoleColor), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(EnumConverter), new
XamlType
(typeof(ConsoleColor), new XamlSchemaContext())) };
4830
yield return new object?[] { new
XamlType
(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()), true };
4831
yield return new object?[] { new
XamlType
(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(object), new XamlSchemaContext()), true };
4832
yield return new object?[] { new
XamlType
(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(string), new XamlSchemaContext()), false };
4833
yield return new object?[] { new
XamlType
(typeof(SubXamlType), new XamlSchemaContext()), new
XamlType
(typeof(XamlType), new XamlSchemaContext()), true };
4834
yield return new object?[] { new
XamlType
(typeof(XamlType), new XamlSchemaContext()), new
XamlType
(typeof(SubXamlType), new XamlSchemaContext()), false };
4835
yield return new object?[] { new
XamlType
(typeof(int), new XamlSchemaContext()), new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), false };
4836
yield return new object?[] { new
XamlType
(typeof(int), new XamlSchemaContext()), null, false };
4841
yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()), false };
4847
new
XamlType
(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()),
4848
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4853
new
XamlType
(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()),
4854
new
XamlType
(typeof(XamlSchemaContext), new XamlSchemaContext()),
4859
new
XamlType
(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()),
4860
new
XamlType
(typeof(XamlSchemaContext), new XamlSchemaContext()),
4865
new
XamlType
(new ReflectionOnlyType(typeof(XamlObjectWriterSettings)), new XamlSchemaContext()),
4866
new
XamlType
(typeof(XamlWriterSettings), new XamlSchemaContext()),
4871
new
XamlType
(new ReflectionOnlyType(typeof(XamlWriterSettings)), new XamlSchemaContext()),
4872
new
XamlType
(typeof(XamlObjectWriterSettings), new XamlSchemaContext()),
4886
new
XamlType
(differentVersionType, new XamlSchemaContext()),
4887
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4899
new
XamlType
(differentCultureType, new XamlSchemaContext()),
4900
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4912
new
XamlType
(differentPublicKeyTokenType, new XamlSchemaContext()),
4913
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4927
new
XamlType
(windowsBaseType, new XamlSchemaContext()),
4928
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4941
new
XamlType
(invalidWindowsBaseType, new XamlSchemaContext()),
4942
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4957
new
XamlType
(invalidKeyTokenWindowsBaseType, new XamlSchemaContext()),
4958
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4965
new
XamlType
(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()),
4966
new
XamlType
(typeof(XamlType), new XamlSchemaContext()),
4973
new
XamlType
(new ReflectionOnlyType(typeof(CustomNameScope)), new XamlSchemaContext()),
4974
new
XamlType
(typeof(INameScope), new XamlSchemaContext()),
4979
new
XamlType
(new ReflectionOnlyType(typeof(CustomNameScopeDictionary)), new XamlSchemaContext()),
4980
new
XamlType
(typeof(INameScope), new XamlSchemaContext()),
4985
new
XamlType
(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()),
4986
new
XamlType
(typeof(INameScope), new XamlSchemaContext()),
4991
new
XamlType
(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()),
4992
new
XamlType
(typeof(INameScope), new XamlSchemaContext()),
4997
new
XamlType
(new ReflectionOnlyType(typeof(INameScope)), new XamlSchemaContext()),
4998
new
XamlType
(typeof(INameScope), new XamlSchemaContext()),
5003
new
XamlType
(new ReflectionOnlyType(typeof(INameScope)), new XamlSchemaContext()),
5004
new
XamlType
(typeof(INameScopeDictionary), new XamlSchemaContext()),
5009
new
XamlType
(new ReflectionOnlyType(typeof(INameScopeDictionary)), new XamlSchemaContext()),
5010
new
XamlType
(typeof(INameScope), new XamlSchemaContext()),
5020
new
XamlType
(nullInterface, new XamlSchemaContext()),
5021
new
XamlType
(typeof(INameScope), new XamlSchemaContext()),
5029
new
XamlType
(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()),
5030
new
XamlType
(genericTypeParameter, new XamlSchemaContext()),
5040
new
XamlType
(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()),
5041
new
XamlType
(nullConstrainedGenericParameter, new XamlSchemaContext()),
5051
new
XamlType
(new ReflectionOnlyType(typeof(XamlObjectWriterSettings)), new XamlSchemaContext()),
5052
new
XamlType
(constrainedGenericParameter, new XamlSchemaContext()),
5058
new
XamlType
(new ReflectionOnlyType(typeof(XamlWriterSettings)), new XamlSchemaContext()),
5059
new
XamlType
(constrainedGenericParameter, new XamlSchemaContext()),
5067
new
XamlType
(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()),
5068
new
XamlType
(new InconsistentNameTypeDelegator(typeof(XamlType)), new XamlSchemaContext()),
5082
var type = new
XamlType
(typeof(int), new XamlSchemaContext());
5084
yield return new object?[] { type, new
XamlType
(typeof(int), new XamlSchemaContext()), true };
5085
yield return new object?[] { type, new
XamlType
(typeof(string), new XamlSchemaContext()), false };
5090
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), true };
5093
yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), false };
5094
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", null, new XamlSchemaContext()), false };
5095
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), false };
5096
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), false };
5097
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()), new
XamlType
(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), false };
5098
yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()), false };
5103
yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new
XamlType
(typeof(int), new XamlSchemaContext()), false };
5130
yield return new object[] { new XamlType("name", "namespace", new XamlType[] { new
XamlType
(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()) };
5131
yield return new object[] { new
XamlType
(typeof(int), new XamlSchemaContext()) };
System\Xaml\XamlWriterTests.cs (2)
33
TypeResult = new
XamlType
(typeof(int), new XamlSchemaContext())
46
MemberResult = new XamlMember("name", new
XamlType
(typeof(int), new XamlSchemaContext()), false)