public static Func <object> CreateFactory(Type type) { if (type.IsGenericType) { Type genericType = type.GetGenericTypeDefinition(); if (genericType == typeof(IList <>)) { Type createType = typeof(List <>).MakeGenericType(type.GetGenericArguments()[0]); return(() => FastActivator.Create(createType)); } } return(() => FastActivator.Create(type)); }
T IFastActivator <T> .Create <TArg0, TArg1>(TArg0 arg0, TArg1 arg1) { return(FastActivator <T, TArg0, TArg1> .Create(arg0, arg1)); }
public static T Create <TArg0, TArg1>(TArg0 arg0, TArg1 arg1) { return(FastActivator <T, TArg0, TArg1> .Create(arg0, arg1)); }
T IFastActivator <T> .Create <TArg0>(TArg0 arg0) { return(FastActivator <T, TArg0> .Create(arg0)); }
public static T Create <TArg0>(TArg0 arg0) { return(FastActivator <T, TArg0> .Create(arg0)); }