# Sandbox.AddedFieldInitializerAttribute

Marks a method the compiler generates for an instance field added since the previous compile, which
returns the value of that field's initializer. When hotloading, the field is set to this value on
instances that existed before it was added. Each method is only generated for the compile that adds its field.

- Kind: attribute
- Namespace: `Sandbox`
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Constructors

- [`AddedFieldInitializerAttribute`](/api/Sandbox.AddedFieldInitializerAttribute/.ctor): Marks a method the compiler generates for an instance field added since the previous compile, which returns the value of that field's initializer. When hotloading, the field is set to this value on instances that existed before it was added. Each method is only generated for the compile that adds its field.

## Properties

- [`FieldName`](/api/Sandbox.AddedFieldInitializerAttribute/FieldName): Metadata name of the added field, which for an auto-property is its backing field.
- [`Supported`](/api/Sandbox.AddedFieldInitializerAttribute/Supported): False if the initializer couldn't be copied into the method, for example because it uses a primary constructor parameter. The method then does nothing, and existing instances keep the field's default value.
