Example of applying it to the entire struct.
@Setting(Serialiser.Settings.ArrayAsObject)
struct Foo
{
// Gets applied to this as well
int[] yall;
}Example of applying it to a single field.
struct Foo
{
int[] bar; // Not affected
@Setting(Serialiser.Settings.ArrayAsObject)
string[] types;
}
This UDA is used to specify certain settings for a type/field.
Notes: If @Setting is applied to the struct (as in the type itself, instead of a field) then the setting is applied to all of the struct's field as well.