public void AddRepeatedInterface() { ITimeStamped tst = new AnonymousClassTimeStamped(this); ProxyFactory pf = new ProxyFactory(tst); // We've already implicitly added this interface. // This call should be ignored without error pf.AddInterface(typeof(ITimeStamped)); // All cool ITimeStamped ts = (ITimeStamped)pf.GetProxy(); }
public void AddRepeatedInterface() { ITimeStamped tst = new AnonymousClassTimeStamped(this); ProxyFactory pf = new ProxyFactory(tst); // We've already implicitly added this interface. // This call should be ignored without error pf.AddInterface(typeof(ITimeStamped)); // All cool ITimeStamped ts = (ITimeStamped)pf.GetProxy(); }