Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 1) CS3026
Collapse the table of content
Expand the table of content

Compiler Warning (level 1) CS3026 

Error Message

CLS-compliant field 'field' cannot be volatile

A volatile variable should not be CLS compliant.


The following example generates CS3026.

// CS3026.cs
public class Test
public volatile int v0 =0;   // CS3026
      // To resolve remove the CLS-CComplient attribute.
public static void Main() { }

Community Additions

© 2015 Microsoft