nl.siegmann.epublib.domain.Author.equals C# (CSharp) Method

equals() public method

public equals ( Object authorObject ) : bool
authorObject Object
return 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);
        }