Required List Length Attribute

[RequiredListLength(10)]
public int[] fixedLength;

[RequiredListLength(1, null)]
public int[] minLength;

[RequiredListLength(null, 10, PrefabKind = PrefabKind.InstanceInScene)]
public List<int> maxLength;

[RequiredListLength(3, 10)]
public List<int> minAndMaxLength;

public int SomeNumber;

[RequiredListLength("@this.SomeNumber")] 
public List<GameObject> matchLengthOfOther;

[RequiredListLength("@this.SomeNumber", null)]
public int[] minLengthExpression;

[RequiredListLength(null, "@this.SomeNumber")]
public List<int> maxLengthExpression;