C# Class SonarLint.VisualStudio.Integration.Service.VersionHelper

Exibir arquivo Open project: SonarSource-VisualStudio/sonarlint-visualstudio

Public Methods

Method Description
Compare ( string versionA, string versionB ) : int

Compare two SonarQube version strings in the format: \d\.\d(\.\d){0,1}(\.\d){0,1}(-[a-zA-Z\d]+){0,1} Up to four numerical components, and an optional pre-release identifier string suffix "-STR".

Private Methods

Method Description
StripPrereleaseString ( string input ) : string

Method Details

Compare() public static method

Compare two SonarQube version strings in the format: \d\.\d(\.\d){0,1}(\.\d){0,1}(-[a-zA-Z\d]+){0,1} Up to four numerical components, and an optional pre-release identifier string suffix "-STR".
public static Compare ( string versionA, string versionB ) : int
versionA string
versionB string
return int