Ejemplo n.º 1
0
 public static ITypeParser CreateNullableTypeParser(Type nullableType, CommandService service, ITypeParser typeParser)
 => typeof(NullableTypeParser <>).MakeGenericType(nullableType).GetConstructors()[0].Invoke(new object[] { service, typeParser }) as ITypeParser;
Ejemplo n.º 2
0
 public NullableTypeParser(CommandService service, TypeParser <T> typeParser)
 {
     _service    = service;
     _typeParser = typeParser;
 }