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