nl.siegmann.epublib.domain.Author.equals C# (CSharp) Метод

equals() публичный Метод

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);
        }