In C# we can get all the details of a method using the following code
XmlDocument doc = new XmlDocument();
Type t = doc.GetType();
System.Reflection.MethodInfo[] methods = t.GetMethods();
Here I am not able to get the comments of a method and the exceptions available in the method.
Type t = typeof(XmlDocument);and avoid creating an instance.