Error del compilador CS0724

Actualización: noviembre 2007

Mensaje de error

no necesita ningún atributo CLSCompliant porque el ensamblado no tiene ningún atributo CLSCompliant
does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute

En el siguiente ejemplo se genera el error CS0724 debido a la instrucción throw dentro del bloque de cláusula finally.

Ejemplo

En el siguiente ejemplo se genera el error CS0724.

// CS0724.cs
using System;

class X
{
    static void Test()
    {
        try
        {
            throw new Exception();
        }
        catch
        {
            try
            {
            }
            finally
            {
                throw; // CS0724
            }
        }
    }

    static void Main()
    {
    }
}