更新:2007 年 11 月
错误消息
由于程序集没有 CLSCompliant 属性,因此不需要 CLSCompliant 属性
下面的示例生成 CS0724,原因是 throw 语句在 finally 子句块内。
示例
下面的示例生成 CS0724。
// CS0724.cs
using System;
class X
{
    static void Test()
    {
        try
        {
            throw new Exception();
        }
        catch
        {
            try
            {
            }
            finally
            {
                throw; // CS0724
            }
        }
    }
    static void Main()
    {
    }
}