You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A writable collection property can be replaced by a completely different collection. Making it readonly prevents that while still allowing individual members to be set. If you want to allow the replacement of the whole collection the recommended pattern is to implement a method to remove all the elements (e.g. System.Collections.ArrayList.Clear) and a method to populate the collection (e.g. System.Collections.ArrayList.AddRange).
The text was updated successfully, but these errors were encountered:
RSPEC-4004
A writable collection property can be replaced by a completely different collection. Making it readonly prevents that while still allowing individual members to be set. If you want to allow the replacement of the whole collection the recommended pattern is to implement a method to remove all the elements (e.g.
System.Collections.ArrayList.Clear
) and a method to populate the collection (e.g.System.Collections.ArrayList.AddRange
).The text was updated successfully, but these errors were encountered: