比如   
namespace ClassLib  
{
public class CRC
{
        /// <summary>
        /// 对指定的System.Byte数组进行CRC16校验,并返回CRC16校验码。
        /// </summary>
        /// <param name="array">要校验的一维System.Byte。</param>
        /// <param name="startIndex">校验的起始索引。</param>
        /// <param name="count">要校验的部分中的元素数。</param>
        /// <returns>CRC16校验码</returns>
        /// <exception>xxxxxxxxxxxxxxxxxxxxxx</exception>
        public static byte[] CRC16(byte[] array, int startIndex, int count)
        {
            //......
        }}
}
然后我在工程中引用该类库文件并使用该方法. ClassLib.CRC.CRC16(.....);但只能智能感应只显示摘要和参数的说明, 怎样才能在智能感应中显示<异常>那个东西啊?我看.net本身的库文件大多都有<异常>这个字样,比如某个函数或者方法智能感应的时候显示
ArgumentNullException ForatEception等等...

解决方案 »

  1.   

    方法内throw异常,注释块自己输入...会打字的吧...
      

  2.   

    忘了告诉你...注释块exception节点支持属性,自己试试...
      

  3.   

    是不是这样写? /// <exception name="ArgumentNullException">空异常</exception>
    public static byte[] CRC16(byte[] array, int startIndex, int count)
      {
         try
         {
            //...
         }
         catch (ArgumentNullException ane)
         {
            //......
         }
      }如果不是请具体描述下
      

  4.   

    查了下资料 应该是这样描述:
    <exception cref="member">description</exception>cref = "member" 对可从当前编译环境中获取的异常的引用。编译器检查到给定异常存在后,将 member转换为输出 XML 中的规范化元素名。必须将 member 括在双引号 (" ") 中。description说明。