string S1 = "1.0.1.0"; string S2 = "1.0.1.0"; Version V1 = new Version(S1); Version V2 = new Version(S2); int X= V1.CompareTo(V2);