Ejemplo n.º 1
0
        public static string ToDebugString(this TodoItem item)
        {
            string        rtn = "";
            StringBuilder sb  = new StringBuilder();

            foreach (System.Reflection.PropertyInfo p in item.GetType().GetProperties())
            {
                sb.Append(string.Format("{0}:{1}", p.Name, p.GetValue(item))).Append("\r\n");
            }
            rtn = sb.ToString();
            return(rtn);
        }