示例#1
0
        /// <summary>
        /// Returns a <see cref="System.String" /> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String" /> that represents this instance.
        /// </returns>
        public override string ToString()
        {
            if (FieldSource == RegistrationFieldSource.PersonField)
            {
                return(PersonFieldType.ConvertToString());
            }

            return(base.ToString());
        }
示例#2
0
        /// <summary>
        /// Returns a <see cref="string"/> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="string"/> that represents this instance.
        /// </returns>
        public override string ToString()
        {
            if (FieldSource == RegistrationFieldSource.PersonField)
            {
                return(PersonFieldType.ConvertToString());
            }

            if (Attribute != null)
            {
                return(Attribute.Name);
            }

            return(base.ToString());
        }