9 references to GetSerializerFor
PresentationFramework (1)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
687
return ValueSerializer.
GetSerializerFor
(descriptor, GetItemContext());
System.Xaml.Tests (8)
System\Windows\Markup\ValueSerializerTests.cs (8)
259
Assert.IsType<DateTimeValueSerializer>(ValueSerializer.
GetSerializerFor
(descriptor, null));
267
Assert.IsType<CustomValueSerializer>(ValueSerializer.
GetSerializerFor
(descriptor, null));
275
Assert.NotNull(ValueSerializer.
GetSerializerFor
(descriptor, null));
287
Assert.Null(ValueSerializer.
GetSerializerFor
(descriptor, null));
294
Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.
GetSerializerFor
((PropertyDescriptor)null!, null));
302
Assert.Throws<InvalidCastException>(() => ValueSerializer.
GetSerializerFor
(descriptor, null));
311
Assert.Same(serializer, ValueSerializer.
GetSerializerFor
(descriptor, context));
319
Assert.IsType<CustomValueSerializer>(ValueSerializer.
GetSerializerFor
(descriptor, context));