Example #1
0
        public string FullName()
        {
            string n;

            n = MiddleInitial.HasValue()
                ? $"{First} {MiddleInitial} {Last}"
                : $"{First} {Last}";
            if (Suffix.HasValue())
            {
                n = n + " " + Suffix;
            }
            return(n);
        }
Example #2
0
        //public string Name { get; set; }
        public string FullName()
        {
            string n;

            if (MiddleInitial.HasValue())
            {
                n = "{0} {1} {2}".Fmt(First, MiddleInitial, Last);
            }
            else
            {
                n = "{0} {1}".Fmt(First, Last);
            }
            if (Suffix.HasValue())
            {
                n = n + " " + Suffix;
            }
            return(n);
        }