Object initializer syntax

Object initializers support setting properties on newly created objects immediately after new expressions. Use object initializers for compact and clear object declarations. Object initializers are especially useful in combination with data structure syntax and nested objects.

Special syntax for initializing lists, collections, and maps

Gosu uses specialized initializer syntax and rules for creating new lists, collections, and maps.

See also