Open gdlcf88 opened 2 years ago
[NotNull]
[CanBeNull]
Check.NotNull(xxx, nameof(xxx));
MyList = new List<MyType>();
MyList = myList
[NotNull]
and[CanBeNull]
attributes as args of the ctor.Check.NotNull(xxx, nameof(xxx));
for string properties if they have the[NotNull]
attribute.MyList = new List<MyType>();
instead ofMyList = myList
for all the collection-type properties.