Advertisement
daegron

Untitled

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