Solvberget.Domain.DTO.Document.GetCompressedString C# (CSharp) Method

GetCompressedString() protected method

protected GetCompressedString ( ) : string
return string
        protected virtual string GetCompressedString()
        {
            string docTypeLookupValue = null;
            if (DocType != null)
            {
                DocumentDictionary.TryGetValue(DocType, out docTypeLookupValue);
            }

            var temp = docTypeLookupValue ?? DocType;
            if (PublishedYear != 0)
                temp += " (" + PublishedYear + ")";
            return temp;
        }