コード例 #1
0
        public string FullName()
        {
            string n;

            n = MiddleInitial.HasValue()
                ? $"{First} {MiddleInitial} {Last}"
                : $"{First} {Last}";
            if (Suffix.HasValue())
            {
                n = n + " " + Suffix;
            }
            return(n);
        }
コード例 #2
0
ファイル: PaymentForm.cs プロジェクト: davidbwire/bvcms
        //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);
        }