Advertisement
daegron

dasdsa

Dec 6th, 2022
848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. public class WithArgumentsSetterImplicitDefault {
  2.      public IContainer Container;
  3.  
  4.      public WithArgumentsSetterImplicitDefault() {
  5.           Container = new Container(x => {
  6.             x.For<IClass1>().Use<Class1>();
  7.             x.For<IClassA>().Use<ClassA>()
  8.             .Ctor<int>().Is(5)
  9.             .Setter<Class1>().IsTheDefault();});
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement