// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.AddIn.Pipeline; using TestContract; using TestAddInView; namespace TestAddInAdapter { [AddInAdapter] public class TestViewToContractAddInAdapter : ContractBase, ITestContract { private ITestAddInView view; public TestViewToContractAddInAdapter(ITestAddInView view) { this.view = view; } public virtual int Version { get { return view.Version; } } public virtual int ThrowDice() { return view.ThrowDice(); } } }