-
Notifications
You must be signed in to change notification settings - Fork 0
JsonCustomArrayLength
Rob edited this page Aug 4, 2026
·
1 revision
Attach to a member of a class to indicate a custom minimum length of an array. If the data is longer, the array will be longer
Applicable to ToObject
public sealed class JsonCustomArrayLength : System.AttributeInheritance System.Object 🡒 System.Attribute 🡒 JsonCustomArrayLength
Constructor, applies to all sets
public JsonCustomArrayLength(int minlen);
minlen System.Int32
Constructor with a list of sets to apply this to.
public JsonCustomArrayLength(string[] setnames, int[] lengths);
setnames System.String[]
lengths System.Int32[]
Set to the minimum length
public int[] MinimumLength { get; set; }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; }