using System; namespace Npgsql.Util; static class VersionExtensions { /// /// Allocation free helper function to find if version is greater than expected /// public static bool IsGreaterOrEqual(this Version version, int major, int minor = 0) => version.Major != major ? version.Major > major : version.Minor >= minor; }