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

            lib.DoStuff();
        }
Exemple #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;
 }
Exemple #4
0
 public MyLibraryCore(MyLibrary cfg)
 {
     _cfg = cfg;
 }