MainValue

This UDA should be attached to a single field that represents the main value of a struct.

For binary based archives, this likely has no real meaning. For text based archives, this will likely determine how the value is formatted.

struct MainValue

Examples

For example, with the SDLang archive (ArchiveSDL), the following struct.

struct Foo
{
    int bar;

    @MainValue
    string type;
}

Would produce the following SDLang file.

Foo "SomeType" { bar 200 }

Meta