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