Class ContentSerializerAttribute
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class ContentSerializerAttribute : Attribute
- Inheritance
-
ContentSerializerAttribute
- Inherited Members
Constructors
ContentSerializerAttribute()
Creates an instance of the attribute.
public ContentSerializerAttribute()
Properties
AllowNull
public bool AllowNull { get; set; }
Property Value
CollectionItemName
Returns the overriden XML element name or the default "Item".
public string CollectionItemName { get; set; }
Property Value
ElementName
public string ElementName { get; set; }
Property Value
FlattenContent
public bool FlattenContent { get; set; }
Property Value
HasCollectionItemName
Returns true if the default CollectionItemName value was overridden.
public bool HasCollectionItemName { get; }
Property Value
Optional
public bool Optional { get; set; }
Property Value
SharedResource
public bool SharedResource { get; set; }
Property Value
Methods
Clone()
public ContentSerializerAttribute Clone()