예제 #1
0
 public bool Equals(SemanticVersion other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(BuildVersion.Equals(other.BuildVersion) && MajorVersion == other.MajorVersion &&
            MinorVersion == other.MinorVersion &&
            PatchVersion == other.PatchVersion &&
            PrereleaseVersion.Equals(other.PrereleaseVersion));
 }