Beispiel #1
0
        public override string ToString()
        {
            string source = string.Empty;

            if (!From.Equals(string.Empty))
            {
                source += " from " + From + "\r\n ";
            }
            if (!By.Equals(string.Empty))
            {
                source += " by " + By + "\r\n ";
            }
            if (!With.Equals(string.Empty))
            {
                source += " with " + With + "\r\n ";
            }
            if (!For.Equals(string.Empty))
            {
                source += " for " + For + "\r\n ";
            }
            if (!Via.Equals(string.Empty))
            {
                source += " via " + Via + "\r\n ";
            }
            if (!Id.Equals(string.Empty))
            {
                source += " id " + Id + "\r\n ";
            }

            if (string.IsNullOrEmpty(source))
            {
                return("");
            }
            return(source.Remove(0, source.Length - 3) + ";" + Date.ToString("r"));
        }