Add attribute [Injection], allowing specific delegation for Servant's construction purposes of the factory or constructor to use for instantiating the containing type. The attribute may only be used once within a type, and is only valid on constructors and static methods. Perhaps allow overload resolution, using name for factory method, but unfortunately this is trickier for constructors where you'd have to specify the types of arguments. The [Injection] attribute is also attributed with ReSharper's [MeansImplicitUse].
Add attribute
[Injection]
, allowing specific delegation for Servant's construction purposes of the factory or constructor to use for instantiating the containing type. The attribute may only be used once within a type, and is only valid on constructors and static methods. Perhaps allow overload resolution, using name for factory method, but unfortunately this is trickier for constructors where you'd have to specify the types of arguments. The[Injection]
attribute is also attributed with ReSharper's[MeansImplicitUse]
.