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