Beispiel #1
0
 /// <summary>
 /// Converts the message object into a string with its values separated by commas. No newline is added at the end of the string.
 /// </summary>
 /// <returns></returns>
 public string ToCSVString()
 {
     return(VersionMajor.ToString() + "," +
            VersionMinor.ToString() + "," +
            Name.ToString() + "," +
            IdHigh.ToString() + "," +
            IdLow.ToString() + "," +
            Length.ToString() + "," +
            FormatString.ToString());
 }
        public override int GetHashCode()
        {
            var hashCode = 1356543658;

            hashCode = hashCode * -1521134295 + VersionMajor.GetHashCode();
            hashCode = hashCode * -1521134295 + VersionMinor.GetHashCode();
            hashCode = hashCode * -1521134295 + VersionPatch.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CustomVersionString);

            return(hashCode);
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     return((int)Math.Pow(VersionMajor.GetHashCode() + 1, Math.Pow(VersionMinor.GetHashCode() + 1, Math.Pow(VersionPatch.GetHashCode() + 1, VersionBuild.GetHashCode() + 1))));
 }