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