public FälttypAttribute(Fälttyp typ) { if (typ == Fälttyp.Okänd) { throw new ArgumentOutOfRangeException(nameof(typ)); } Typ = typ; }
public FälttypAttribute(Fälttyp typ, int maxLength) : this(typ) { MaxLength = maxLength; }