9 references to GetSerializerFor
PresentationFramework (1)
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1468
return ValueSerializer.
GetSerializerFor
(descriptor);
System.Xaml (2)
System\Windows\Markup\ValueSerializer.cs (1)
230
return
GetSerializerFor
(descriptor);
System\Xaml\XamlObjectReader.cs (1)
2843
return ValueSerializer.
GetSerializerFor
(propertyDescriptor);
System.Xaml.Tests (6)
System\Windows\Markup\ValueSerializerTests.cs (6)
258
Assert.IsType<DateTimeValueSerializer>(ValueSerializer.
GetSerializerFor
(descriptor));
266
Assert.IsType<CustomValueSerializer>(ValueSerializer.
GetSerializerFor
(descriptor));
274
Assert.NotNull(ValueSerializer.
GetSerializerFor
(descriptor));
286
Assert.Null(ValueSerializer.
GetSerializerFor
(descriptor));
293
Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.
GetSerializerFor
((PropertyDescriptor)null!));
301
Assert.Throws<InvalidCastException>(() => ValueSerializer.
GetSerializerFor
(descriptor));