Open SebastianFalborg opened 1 year ago
You have to pass it an array. .net 5 limits if I remember right and we support backward to that version. A list isn't going to work feel free to test and submit a pr if you find an easy workaround that still works in .net 5
It looks like BSInputBase is using this.IsMultipleSelect = typeof (TValue).IsArray;
Microsoft write this about IsArray.
"The IsArray property returns false for the Array class. It also returns false if the current instance is a Type object that represents a collection type or an interface designed to work with collections, such as IEnumerable or IEnumerable.
To check for an array, use code such as:
typeof(Array).IsAssignableFrom(type)
If the current type represents a generic type, or a type parameter in the definition of a generic type or generic method, this property always returns false."
Or maybe something else is wrong. I am using a simple List<> and it is not making it multiple.