ContentSerializerAttribute.AllowNull Property

Get or set a value indicating whether this member can have a null value (default=true).

Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public bool AllowNull { get; set; }

Property Value

Value indicating whether this member can have a null value.

Example

ContentSerializerAttribute with AllowNull set to false.

[ContentSerializerAttribute( AllowNull = false )]

See Also

Reference

ContentSerializerAttribute Class
ContentSerializerAttribute Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone