Exemple #1
0
 public static void MyWrapperMethod(IMyWrapper wrapped, Action doStuff)
 {
     try
     {
         doStuff();
     }
     finally
     {
         wrapped.Do();
     }
 }
Exemple #2
0
 public Wrapper(IMyWrapper wrapped) => Wrapped = wrapped;
Exemple #3
0
 public Wrapper(IMyWrapper wrapped, Func <string, IMyWrapper> wrappedFunc, Tuple <IMyWrapper> wrapperTuple)
 {
     Wrapped = wrapped;
     Wrapped = wrappedFunc("aa");
 }