public equals ( Object authorObject ) : bool | ||
authorObject | Object | |
Результат | bool |
public bool equals(Object authorObject)
{
if (!(authorObject.GetType() == typeof(Author)))
{
return false;
}
var other = (Author)authorObject;
return StringUtil.equals(firstname, other.firstname)
&& StringUtil.equals(lastname, other.lastname);
}