示例#1
0
        public FulName(string fulName, bool isStandartView = false)
        {
            var sfm = StandartView.ToStringArray(fulName);

            if (sfm.Length > 2)
            {
                throw new System.Exception($"{fulName} нарушение формата ввода");
            }

            FirstName = (isStandartView) ? sfm[1] : StandartView.ConverteToStandartString(sfm[1]);

            SecondName = (isStandartView) ? sfm[0] : StandartView.ConverteToStandartString(sfm[0]);
        }
示例#2
0
        public FulName(string secondName, string firstName, bool isStandartView = false)
        {
            FirstName = (isStandartView) ? firstName: StandartView.ConverteToStandartString(firstName);

            SecondName = (isStandartView) ? secondName : StandartView.ConverteToStandartString(secondName);
        }