JsonCustomFormatArray - robbyxp1/QuickJSON GitHub Wiki
QuickJSON
QuickJSON
JsonCustomFormatArray Class
Attach to a member of a class to indicate a custom output/input call is needed for each array member, not for the object itself
Applicable to FromObject and ToObject
Must supply a customformat callback to both From and To object if used.
public sealed class JsonCustomFormatArray : System.Attribute
Inheritance System.Object 🡒 System.Attribute 🡒 JsonCustomFormatArray
Constructors
JsonCustomFormatArray.JsonCustomFormatArray() Constructor
Constructor, applies to all sets
public JsonCustomFormatArray();
JsonCustomFormatArray.JsonCustomFormatArray(string[]) Constructor
Constructor with a list of sets to apply this to.
public JsonCustomFormatArray(params string[] setnames);
Parameters
setnames System.String(https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array')
Properties
JsonCustomFormatArray.Sets Property
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; }
Property Value
System.String(https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array')