-
Notifications
You must be signed in to change notification settings - Fork 0
JsonAlwaysCreate
Rob edited this page Aug 4, 2026
·
1 revision
Attach to a member of a class to indicate that it must be made, and must not be null
Default constructor will be called if required
Applicable to ToObject.
public sealed class JsonAlwaysCreate : System.AttributeInheritance System.Object 🡒 System.Attribute 🡒 JsonAlwaysCreate
List of names for this attribute
public JsonAlwaysCreate();Constructor with set names.
public JsonAlwaysCreate(string[] sets);
sets System.String[]
If non null, this lists the names of the sets associated with the name list.
Must be the same length as Names list
sets can be mentioned more than once to get multiple names accepted.
Attribute sets allow selection of different inputs and outputs from the same class
public string[] Sets { get; set; }