Erreur du compilateur CS0724
Mise à jour : novembre 2007
Message d'erreur
n'a pas besoin d'un attribut CLSCompliant, car l'assembly n'a pas d'attribut CLSCompliant
does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute
L'exemple suivant génère l'erreur CS0724 à cause de l'instruction throw à l'intérieur du bloc de clause finally.
Exemple
L'exemple suivant génère l'erreur CS0724.
// CS0724.cs
using System;
class X
{
static void Test()
{
try
{
throw new Exception();
}
catch
{
try
{
}
finally
{
throw; // CS0724
}
}
}
static void Main()
{
}
}