IValueSerializerContext.GetValueSerializerFor Method

Definition

Gets the ValueSerializer associated with an object.

Overloads

GetValueSerializerFor(PropertyDescriptor)

Gets a ValueSerializer for the given property descriptor.

GetValueSerializerFor(Type)

Gets the ValueSerializer associated with the specified type.

GetValueSerializerFor(PropertyDescriptor)

Gets a ValueSerializer for the given property descriptor.

public:
 System::Windows::Markup::ValueSerializer ^ GetValueSerializerFor(System::ComponentModel::PropertyDescriptor ^ descriptor);
public System.Windows.Markup.ValueSerializer GetValueSerializerFor (System.ComponentModel.PropertyDescriptor descriptor);
abstract member GetValueSerializerFor : System.ComponentModel.PropertyDescriptor -> System.Windows.Markup.ValueSerializer
Public Function GetValueSerializerFor (descriptor As PropertyDescriptor) As ValueSerializer

Parameters

descriptor
PropertyDescriptor

The descriptor of the property being converted.

Returns

A ValueSerializer capable of serializing the specified property.

See also

GetValueSerializerFor(Type)

Gets the ValueSerializer associated with the specified type.

public:
 System::Windows::Markup::ValueSerializer ^ GetValueSerializerFor(Type ^ type);
public System.Windows.Markup.ValueSerializer GetValueSerializerFor (Type type);
abstract member GetValueSerializerFor : Type -> System.Windows.Markup.ValueSerializer

Parameters

type
Type

The type of the value being converted.

Returns

A ValueSerializer capable of serializing the specified type.

See also

Applies to