How to get type and/or member descriptions through reflection

Type information as well as member and parameter information can  all be accessed by reflection. The reflector program  displays all the above info as well as a textual description of a type as well as its members and also parameter descriptions. My question is how are the textual descriptions retrieved?
bluelight1324Asked:
Who is Participating?
 
bluelight1324Connect With a Mentor Author Commented:
Hello,
         I  was thinking that this information would be stored in the metadata of an assembly. I t is actually stored in the generated help documents the xml files.
0
 
drypzCommented:
Are you looking for FieldInfo in System.Reflection?


    Type yourObject = typeof(yourObject);
 
    foreach (FieldInfo fi in yourObject.GetFields())
    {
        //access fi properties/methods here
    }

Open in new window

0
 
bluelight1324Author Commented:
Thanks for your response. I am actually looking ffor a way to get the descriptions of the types  and parameters from an assembly. If  you look at the 'string' type in reflector the description says 'Represents text as a series of Unicode characters'. The Compare member of string type has a description which says 'Compares two specified String objects.'  Reflector is retrieving these descriptions from somewhere. My question is  from where?
0
All Courses

From novice to tech pro — start learning today.