Example #1
0
 public static TInterface CreateInterfaceProxy <TInterface>(this ProxyGenerator proxyGenerator) =>
 (TInterface)proxyGenerator.CreateInterfaceProxy(typeof(TInterface));
Example #2
0
        public static TInterface CreateProxy()
        {
            ProxyGenerator <TInterface, Tclass> pg = new ProxyGenerator <TInterface, Tclass>();

            return((TInterface)pg.GetTransparentProxy());
        }