Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
CLS-compliant field 'field' cannot be volatile
A volatile variable should not be CLS compliant.
Example
The following example generates CS3026.
// CS3026.cs
[assembly:System.CLSCompliant(true)]
public class Test
{
public volatile int v0 =0; // CS3026
// To resolve remove the CLS-CComplient attribute.
public static void Main() { }
}