private string CreateDateString() { return(IsValid ? string.Join("", new List <string> { "1", DateFrom.ToSortString(), ((int)DateType).ToString(), DateTo.ToSortString() }) : string.Join("", new List <string> { "2", DatePhrase })); }