internal static string GetValue(InternetMessageHeader header, bool singleLine)
        {
            if (singleLine)
            {
                return(string.Format(System.Globalization.CultureInfo.CurrentCulture, "Name: {0} Value: {1}", header.Name, header.Value));
            }

            return(string.Format(System.Globalization.CultureInfo.CurrentCulture, "Name: {0}\nValue: {1}", header.Name, header.Value));
        }
        public string GetValue(object ownerInstance, PropertyInfo propInfo)
        {
            string text = string.Empty;

            InternetMessageHeader header =
                propInfo.GetValue(ownerInstance, null) as InternetMessageHeader;

            return(GetValue(header, false));
        }
 String GetCollectionItemXmlElementName(InternetMessageHeader complexProperty)
 {
     return(XmlElementNames.InternetMessageHeader);
 }