26 instantiations of TypeExtension
PresentationFramework (6)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11825
DefaultConstructor = delegate () { return new System.Windows.Markup.
TypeExtension
(); },
11832
return new System.Windows.Markup.
TypeExtension
(
System\Windows\Markup\BamlRecordReader.cs (2)
1413
instance = new
TypeExtension
(t);
1418
instance = new
TypeExtension
((String)param);
System\Windows\Markup\KnownTypes.cs (1)
1621
case KnownElements.TypeExtension: o = new System.Windows.Markup.
TypeExtension
(); break;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
921
return new
TypeExtension
(type);
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
1981
objectInfo = ForObject(new
TypeExtension
(type), context);
System.Xaml.Tests (19)
System\Windows\Markup\TypeExtensionTests.cs (19)
17
var extension = new
TypeExtension
();
27
var extension = new
TypeExtension
(typeName);
35
Assert.Throws<ArgumentNullException>("typeName", () => new
TypeExtension
((string)null!));
42
var extension = new
TypeExtension
(type);
50
Assert.Throws<ArgumentNullException>("type", () => new
TypeExtension
((Type)null!));
56
var extension = new
TypeExtension
(typeof(int));
63
var extension = new
TypeExtension
("Type");
82
var extension = new
TypeExtension
();
89
var extension = new
TypeExtension
("typeName");
98
var extension = new
TypeExtension
("typeName");
109
var extension = new
TypeExtension
("typeName");
129
var extension = new
TypeExtension
(typeof(int))
140
var extension = new
TypeExtension
();
148
var extension = new
TypeExtension
("typeName") { Type = value };
156
var extension = new
TypeExtension
();
167
var extension = new
TypeExtension
("member");
175
var extension = new
TypeExtension
(typeof(int));
185
var extension = new
TypeExtension
("member");
194
var extension = new
TypeExtension
("member");
34 references to TypeExtension
PresentationFramework (6)
OtherAssemblyAttrs.cs (1)
17
[assembly: TypeForwardedTo(typeof(System.Windows.Markup.
TypeExtension
))]
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
785
case 691: t = () => typeof(
TypeExtension
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11822
typeof(System.Windows.Markup.
TypeExtension
),
System\Windows\Markup\KnownTypes.cs (1)
6239
case KnownElements.TypeExtension: t = typeof(System.Windows.Markup.
TypeExtension
); break;
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
552
string xamlUri = scope.MakeAddressable(typeof(
TypeExtension
));
System\Windows\TemplateContent.cs (1)
1019
&& typeofValue != typeof(
TypeExtension
)
System.Xaml (4)
System\Windows\Markup\TypeExtensionConverter.cs (3)
31
if (!(value is
TypeExtension
typeExtension))
33
throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(
TypeExtension
)));
37
typeof(
TypeExtension
).GetConstructor(new Type[] { typeof(Type) }),
System\Xaml\XamlLanguage.cs (1)
68
new Lazy<XamlType>(() => GetXamlType(typeof(
TypeExtension
)));
System.Xaml.Tests (24)
System\Windows\Markup\TypeExtensionTests.cs (17)
17
var
extension = new TypeExtension();
27
var
extension = new TypeExtension(typeName);
42
var
extension = new TypeExtension(type);
56
var
extension = new TypeExtension(typeof(int));
63
var
extension = new TypeExtension("Type");
82
var
extension = new TypeExtension();
89
var
extension = new TypeExtension("typeName");
98
var
extension = new TypeExtension("typeName");
109
var
extension = new TypeExtension("typeName");
129
var
extension = new TypeExtension(typeof(int))
140
var
extension = new TypeExtension();
148
var
extension = new TypeExtension("typeName") { Type = value };
156
var
extension = new TypeExtension();
167
var
extension = new TypeExtension("member");
175
var
extension = new TypeExtension(typeof(int));
185
var
extension = new TypeExtension("member");
194
var
extension = new TypeExtension("member");
System\Xaml\XamlLanguageTests.cs (1)
100
Assert.Equal(typeof(
TypeExtension
), type.UnderlyingType);
System\Xaml\XamlSchemaContextTests.cs (2)
498
new XamlType(typeof(
TypeExtension
), new XamlSchemaContext())
503
new XamlType(typeof(
TypeExtension
), new XamlSchemaContext())
System\Xaml\XamlTypeTests.cs (4)
3682
yield return new object?[] { new SubXamlType(typeof(
TypeExtension
), new XamlSchemaContext()), 2, null };
3683
yield return new object?[] { new SubXamlType(typeof(
TypeExtension
), new XamlSchemaContext()), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } };
3684
yield return new object?[] { new SubXamlType(typeof(
TypeExtension
), new XamlSchemaContext()), 0, null };
3685
yield return new object?[] { new SubXamlType(typeof(
TypeExtension
), new XamlSchemaContext()), -1, null };