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
Simple Injector supports all kinds of collections, but does not natively understand ReadOnlyCollection<T>. As ReadOnlyCollection<T> only has one constructor, Simple Injector v4 is able to construct the type and will inject a supported IList<T>, but this makes the ReadOnlyCollection<T> Transient, which could easily cause lifestyle mismatches.
Besides supporting the concrete type Collection<T>, Simple Injector should be able to inject a singleton ReadOnlyCollection<T> as well.
The text was updated successfully, but these errors were encountered:
Simple Injector supports all kinds of collections, but does not natively understand
ReadOnlyCollection<T>
. AsReadOnlyCollection<T>
only has one constructor, Simple Injector v4 is able to construct the type and will inject a supportedIList<T>
, but this makes theReadOnlyCollection<T>
Transient, which could easily cause lifestyle mismatches.Besides supporting the concrete type
Collection<T>
, Simple Injector should be able to inject a singletonReadOnlyCollection<T>
as well.The text was updated successfully, but these errors were encountered: