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