Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)
Indicates that the initial value of a field (as inlined or set in the default constructor) will be used as the default value during persistence.
Namespace: Visual3DAssembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | Visual Basic |
public sealed class DefaultToInitialValueAttribute : Attribute
Public NotInheritable Class DefaultToInitialValueAttribute _ Inherits Attribute
Members
| All Members | Constructors | Properties |
| Member | Description | |
|---|---|---|
| DefaultToInitialValueAttribute()()()() | Initializes a new instance of the DefaultToInitialValueAttribute class | |
| IsDefaulted |
Remarks
Default values are ommited when saving an object (to produce more compact content files) and are assumed to be the property value if no value is if found when loading the object. Therefore, just like with changing a property on a prototype, if you change the initial value of the field, then any objects which had the old default value when they were last saved will have the new default value when next they are loaded.
Types which implement IPrototypeInstance ignore this attribute and use only
Inheritance Hierarchy
System..::..Object
System..::..Attribute
Visual3D..::..DefaultToInitialValueAttribute
System..::..Attribute
Visual3D..::..DefaultToInitialValueAttribute