Closed egil closed 3 years ago
Closes #49.
The ToString on models now print the count of collections instead of just the type name, e.g. List.
This is a simple example of the change:
public override string ToString() { - return $"{nameof(MyItems)}: {MyItems}"; + return $"{nameof(MyItems)}: {MyItems?.Count ?? 0}"; }
Note that the code ensures it works with both nullable and non-nullable collections, and this makes it safe even if null is assigned to a non-nullable property.
Closes #49.
The ToString on models now print the count of collections instead of just the type name, e.g. List.
This is a simple example of the change:
Note that the code ensures it works with both nullable and non-nullable collections, and this makes it safe even if null is assigned to a non-nullable property.