I have come across an issue that I can't seem to find any answers for. I have a number as a string in the format "5.2.3" what format would I convert this into to be able to use the greater than and less than operators in C#? I have tried the following which errors:
Decimal version = Decimal.Parse(strVersion);
if (version < Decimal.Parse("5.2.4"))
{
// Do something
}
The decimal type which essentially this number is gives me the error "Invalid Format Exception"?