示例#1
0
 public bool Equals(Model other)
 {
     return(other != null &&
            Name.Equals(other.Name) &&
            ModelAlias.Equals(other.ModelAlias) &&
            OsVersions.Equals(other.OsVersions));
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = 0;
         result = (result * 397) ^ Name.GetHashCode();
         result = (result * 397) ^ ModelAlias.GetHashCode();
         result = (result * 397) ^ OsVersions.GetHashCode();
         return(result);
     }
 }
示例#3
0
        public override bool Equals(object obj)
        {
            var model = obj as Model;

            if (model == null)
            {
                return(false);
            }

            return(Name.Equals(model.Name) &&
                   ModelAlias.Equals(model.ModelAlias) &&
                   OsVersions.Equals(model.OsVersions));
        }