Пример #1
0
 /// <summary>
 /// Creates an instance of the specified type using a generated factory to avoid using Reflection.
 /// </summary>
 /// <typeparam name="T">The type to be created.</typeparam>
 /// <returns>The newly created instance.</returns>
 public static T Create <T>()
 => (T)FastActivator.Create(typeof(T));