Esempio n. 1
0
 public bool Equals(Model other)
 {
     return(other != null &&
            Name.Equals(other.Name) &&
            ModelAlias.Equals(other.ModelAlias) &&
            OsVersions.Equals(other.OsVersions));
 }
Esempio n. 2
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));
        }