ValueSerializer.TypeReferences Method (Object, IValueSerializerContext)
Gets an enumeration of the types referenced by the ValueSerializer.
Assembly: System.Xaml (in System.Xaml.dll)
public virtual IEnumerable<Type> TypeReferences( object value, IValueSerializerContext context )
The value being serialized.
Context information that is used for conversion.
Any types a ValueSerializer converts should be included in the returned enumeration. This allows a serializer to ensure a de-serializer has enough information about the types this serializer converts.
Overriding this method is an advanced scenario. Overriding should only be necessary if you are implementing a system where CLR type system ownertype-property relationships available to a XAML schema context do not report enough information.
The WPF property system implements an internal value serializer that overridesbecause a dependency property has a concept that it can have added owners. WPF expressions also have special internal handling.
Available since 3.0