// 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 TestHostView; namespace TestHostAdapter { [HostAdapter] public class TestContractToViewHostAdapter : ITestHostView { private ITestContract c; private ContractHandle h; public TestContractToViewHostAdapter(ITestContract c) { this.c = c; h = new ContractHandle(c); } public virtual int Version { get { return c.Version; } } public virtual int ThrowDice() { return c.ThrowDice(); } } }