ContentSerializerAttribute Members
The following tables list the members exposed by the ContentSerializerAttribute type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
ContentSerializerAttribute | Creates a new instance of ContentSerializerAttribute. |
Public Properties
Name | Description | |
---|---|---|
![]() |
AllowNull | Get or set a value indicating whether this member can have a null value (default=true). |
![]() |
CollectionItemName | Gets or sets the XML element name for each item in a collection (default = "Item"). |
![]() |
ElementName | Gets or sets the XML element name (default=name of the managed type member). |
![]() |
FlattenContent | Gets or sets a value idicating whether to write member contents directly into the current XML context rather than wrapping the member in a new XML element (default=false). |
![]() |
HasCollectionItemName | Indicates whether an explicit CollectionItemName string is being used or the default value. |
![]() |
Optional | Indicates whether to write this element if the member is null and skip past it if not found when deserializing XML (default=false). |
![]() |
SharedResource | Indicates whether this member is referenced from multiple parents and should be serialized as a unique ID reference (default=false). |
Public Methods
Name | Description | |
---|---|---|
![]() |
Clone | Creates a copy of the ContentSerializerAttribute. |
![]() |
Equals | (Inherited from Attribute.) |
![]() |
GetHashCode | (Inherited from Attribute.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
Match | (Inherited from Attribute.) |
![]() |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
See Also
Reference
ContentSerializerAttribute Class
Microsoft.Xna.Framework.Content Namespace