/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.1.15
src/Npgsql/Util/VersionExtensions.cs
17 строк
532 B
Shay Rojansky
Minor cleanup all around
03 сен 2019, 12:26
03 сен 2019, 12:26
e59da52
Код
Авторство
О чём код?
using System; namespace Npgsql.Util { static class VersionExtensions { /// <summary> /// Allocation free helper function to find if version is greater than expected /// </summary> public static bool IsGreaterOrEqual(this Version version, int major, int minor, int build) => version.Major != major ? version.Major > major : version.Minor != minor ? version.Minor > minor : version.Build >= build; } }