public ReleasePackage(int version) { this = new ReleasePackage() { Version = version }; }
public ReleasePackage(string s) { this = new ReleasePackage(); string[] strArrays = s.Split(new char[] { '.' }); if ((int)strArrays.Length != 4) { throw new ArgumentOutOfRangeException(); } this.Version = strArrays.Aggregate<string, int>(0, (int v, string b) => v << 8 | byte.Parse(b)); }
public static bool IsVersionString(string s) { bool flag; try { ReleasePackage releasePackage = new ReleasePackage(s); return true; } catch (Exception exception) { flag = false; } return flag; }
public bool Equals(ReleasePackage other) { return this.Version == other.Version; }