$ 0 0 Apparently the MaxLengthAttribute only works on strings and arrays. It might be useful to expand this include collection types.