public static object Of(Type innerType, Type baseType, params object[] parameters) { Type proxyType = CreateType(innerType, baseType); return(FastObjectCreator.CreateObject(proxyType, parameters)); }
public static TBase Of <T, TBase>(params object[] parameters) where T : class, TBase { Type proxyType = CreateType <T, TBase>(); return((TBase)FastObjectCreator.CreateObject(proxyType, parameters)); }
public static T Of <T>(params object[] parameters) where T : class { Type proxyType = CreateType <T>(); return((T)FastObjectCreator.CreateObject(proxyType, parameters)); }