How to access property summary in code ?
I have a class, with few properties, where some of the have an XML comment (summary).
What I want to do is display the summary info for the user in the application. 
So I need to access summary text in code, to be able to do : Label1.Text = .......
how do I do that ?


  

   

     public class MyObject
            {
                public int ID { get; set; }
                /// <summary>
                /// very very very very extensive information about the city
                /// </summary>
                public string City { get; set; }
                public DateTime Date { get; set; }
                public int Value { get; set; }
                public int DiffToPrev { get; set; }
            }
    
    
    
     class Program
        {
    
            static void Main()
            {
                var a = new MyObject();
                var t = a.GetType().GetProperty("City");
                Console.WriteLine(t....................


How to access property summary in code ?
===

I have a class, with few properties, where some of the have an XML comment (summary).
What I want to do is display the summary info for the user in the application. 
So I need to access summary text in code, to be able to do : Label1.Text = .......
how do I do that ?


  

   

     public class MyObject
            {
                public int ID { get; set; }
                /// <summary>
                /// very very very very extensive information about the city
                /// </summary>
                public string City { get; set; }
                public DateTime Date { get; set; }
                public int Value { get; set; }
                public int DiffToPrev { get; set; }
            }
    
    
    
     class Program
        {
    
            static void Main()
            {
                var a = new MyObject();
                var t = a.GetType().GetProperty("City");
                Console.WriteLine(t....................

