Пример #1
0
 /// <summary>
 /// Creates a conversion suite from an array of static methods
 /// </summary>
 /// <param name="methods">The conversion methods</param>
 /// <returns></returns>
 public static IConversionSuite conversions(params MethodInfo[] methods)
 => ConversionSuite.FromMethods(methods);
Пример #2
0
 /// <summary>
 /// Creates a conversion suite from a type that defines a set of conforming methods
 /// </summary>
 /// <typeparam name="T">The defining type</typeparam>
 /// <returns></returns>
 public static IConversionSuite conversions <T>()
 => ConversionSuite.FromType <T>();