class DefaultValueAttribute : System.Attribute

robot_2Generated
code_blocksInput

Description

The DefaultValueAttribute class is used to specify the default value for a property. This is particularly useful in scenarios where code generation (CodeGen) needs to reflect the original initial value of a property, which is set using {get;set;} = initialvalue;. This attribute can be manually applied in cases where code generation cannot define the default value, such as with structs like vectors and colors, where the default value isn't a simple number or string.

Members

Instance Members

Member NameSummary
ValueThe default value.