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