Esempio n. 1
0
 public static TInterface CreateInterfaceProxy <TInterface>(this ProxyGenerator proxyGenerator) =>
 (TInterface)proxyGenerator.CreateInterfaceProxy(typeof(TInterface));
Esempio n. 2
0
 public static TClass CreateClassProxy <TClass>(this ProxyGenerator proxyGenerator) where TClass : class =>
 (TClass)proxyGenerator.CreateClassProxy(typeof(TClass));
Esempio n. 3
0
 public static TClass CreateClassProxy <TClass, TImplement>(this ProxyGenerator proxyGenerator) where TImplement : TClass =>
 (TClass)proxyGenerator.CreateClassProxy(typeof(TClass), typeof(TImplement));
Esempio n. 4
0
 public static TInterface CreateInterfaceProxy <TInterface, TImplement>(this ProxyGenerator proxyGenerator) where TImplement : TInterface =>
 (TInterface)proxyGenerator.CreateInterfaceProxy(typeof(TInterface), typeof(TImplement));