Пример #1
0
 /// <summary>
 /// Creates the instance.
 /// </summary>
 /// <param name="type">The identifier.</param>
 /// <returns></returns>
 /// <exception cref="TypeInstantiationException"></exception>
 public object GetInstance(Type type) => GetInstance(ToString(type), ArrayExtensions.Empty <object>());
Пример #2
0
 /// <summary>
 /// Gets the type of the parameters.
 /// </summary>
 /// <param name="args">The arguments.</param>
 /// <returns></returns>
 public static IEnumerable <Type> GetTypes(object[] args) => args == null || args.Length == 0 ? ArrayExtensions.ToArray <Type>() : args.Select(GetType);
Пример #3
0
 /// <summary>
 /// Creates the instance.
 /// </summary>
 /// <param name="typeFullName">The identifier.</param>
 /// <returns></returns>
 /// <exception cref="TypeInstantiationException"></exception>
 public object GetInstance(string typeFullName) => GetInstance(typeFullName, ArrayExtensions.Empty <object>());
Пример #4
0
 /// <summary>
 /// Gets the full name of the parameters.
 /// </summary>
 /// <param name="args">The arguments.</param>
 /// <returns></returns>
 public static IEnumerable <string> GetNames(string[] args) => args == null || args.Length == 0 ? ArrayExtensions.ToArray <string>() : args;