Table of Contents

Class ContentSerializerAttribute

Namespace
Microsoft.Xna.Framework.Content
Assembly
MonoGame.Framework.dll
[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

bool

CollectionItemName

Returns the overriden XML element name or the default "Item".

public string CollectionItemName { get; set; }

Property Value

string

ElementName

public string ElementName { get; set; }

Property Value

string

FlattenContent

public bool FlattenContent { get; set; }

Property Value

bool

HasCollectionItemName

Returns true if the default CollectionItemName value was overridden.

public bool HasCollectionItemName { get; }

Property Value

bool

Optional

public bool Optional { get; set; }

Property Value

bool

SharedResource

public bool SharedResource { get; set; }

Property Value

bool

Methods

Clone()

public ContentSerializerAttribute Clone()

Returns

ContentSerializerAttribute