public void Usage_DelegatedToFunc()
        {
            var lib = new MyLibrary()
                .OnLogMessage(m => System.Diagnostics.Debug.WriteLine(m))
                .Create();

            lib.DoStuff();
        }
예제 #2
0
        public void Usage_DelegatedToFunc()
        {
            var lib = new MyLibrary()
                      .OnLogMessage(m => System.Diagnostics.Debug.WriteLine(m))
                      .Create();

            lib.DoStuff();
        }
 public MyLibraryCore(MyLibrary cfg)
 {
     _cfg = cfg;
 }
예제 #4
0
 public MyLibraryCore(MyLibrary cfg)
 {
     _cfg = cfg;
 }