/// <summary> /// Check if a property is a collection of primitives /// </summary> private static bool IsPrimitiveCollection(Type memberType) { if (!EntryConvert.IsCollection(memberType)) { return(false); } var elementType = EntryConvert.ElementType(memberType); return(EntryConvert.ValueOrStringType(elementType)); }