-
Notifications
You must be signed in to change notification settings - Fork 0
JsonCustomFormat
robbyxp1 edited this page Apr 18, 2025
·
4 revisions
Attach to a member of a class to indicate a custom output/input call is needed for the whole element.
Applicable to FromObject and ToObject
Must supply a customformat callback to both From and To object if used.
public sealed class JsonCustomFormat : System.Attribute
Inheritance System.Object 🡒 System.Attribute 🡒 JsonCustomFormat
Constructor, applies to all sets
public JsonCustomFormat();
Constructor with a list of sets to apply this to.
public JsonCustomFormat(params string[] setnames);
setnames
System.String[]
If non null, this belongs to an attribute set name to check. If null, applies to all sets
Attribute sets allow selection of different outputs from the same class
public string[] Sets { get; set; }