var className = typeof(Console);
var methodInfo = className.GetMethod("WriteLine",new [] { typeof(string) });
Writeline メソッドの methodInfo オブジェクトを取得しました。そのメソッドの定義を見ると、次のようになります。
//
// Summary:
// Writes the specified string value, followed by the current line terminator,
// to the standard output stream.
//
// Parameters:
// value:
// The value to write.
//
// Exceptions:
// System.IO.IOException:
// An I/O error occurred.
public static void WriteLine(string value);
私が欲しいのは、特定のメソッドのコメントを取得することです。、リフレクションを使用してこれを達成する方法はありますか? または他の可能な方法は?