Solvberget.Domain.DTO.Book.GetCompressedString C# (CSharp) 메소드

GetCompressedString() 보호된 메소드

protected GetCompressedString ( ) : string
리턴 string
        protected override string GetCompressedString()
        {
            var returnValue = Author.Name;

            if (string.IsNullOrEmpty(returnValue))
            {
                return base.GetCompressedString();
            }

            if (PublishedYear != 0)
            {
                returnValue += " (" + PublishedYear + ")";
            }

            return returnValue;
        }