예제 #1
0
        public void Normalize()
        {
            if (!String.IsNullOrEmpty(Cnpj))
            {
                Cnpj = new String(Cnpj.Where(Char.IsDigit).ToArray());
            }

            if (!String.IsNullOrEmpty(Name))
            {
                Name = Name.ToUpper();
            }

            if (!String.IsNullOrEmpty(FantasyName))
            {
                Name = FantasyName.ToUpper();
            }

            if (String.IsNullOrEmpty(FantasyName))
            {
                FantasyName = Name;
            }
        }