In This Article

XmlSerializerProperty<TSource, TProperty> Class

Defines a property that supports XML serialization.

public class XmlSerializerProperty<TSource, TProperty> : IXmlSerializerProperty
Type Parameters:
TSource -
TProperty -
Inheritance:
object object
Implements:
IXmlSerializerProperty

Constructors

XmlSerializerProperty(Expression<Func<TSource, TProperty>>, Func<TSource, bool>?)

Initializes an instance of the class.

public XmlSerializerProperty(Expression<Func<TSource, TProperty>> propertyExpression, Func<TSource, bool>? shouldSerializeDelegate = null)
Parameter Type Description
propertyExpression Expression<Func<TSource, TProperty>>

An expression which identifies the property to be serialized.

shouldSerializeDelegate Func<TSource, bool>

An optional delegate which returns if the property should be serialized.

Inherited Members

Extension Methods