是否有可能在运行时获得一流的总结? [英] Is it possible to obtain class summary at runtime?

查看:119
本文介绍了是否有可能在运行时获得一流的总结?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在C#运行时获得一流的总结?
我想通过反射来获取类摘要,然后写出来安慰。
通过类摘要我的意思是总结评论类定义之前,这样的事情:

Is it possible to obtain class summary at runtime in C#? I would like to obtain class summary through reflection and then write it to console. By class summary I mean summary comments before class definition, something like this:

/// <summary>
/// some description
/// </summary>
class SomeClass
{
}

我不知道,如果这些评论编译code后可用,但如果是,也许有一种方法来获得他们在code。

I don't know if these comments are available after compiling the code, but if they are maybe there is a way to obtain them in code.

预先感谢帮助。

推荐答案

我曾经与这个混乱而回,并用这个家伙的解决方案。工作pretty好:

I once messed with this a while back, and used this guys solution. Worked pretty good:

http://jimblackler.net/blog/?p=49

这篇关于是否有可能在运行时获得一流的总结?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆