Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 1) C4935

Error Message

assembly access specifier modified from 'access'

The assembly visibility of a type was modified. The compiler uses the last specifier that it encounters. For example, the assembly visibility of a forward declaration may be different from the assembly visibility of the class definition.

C4935 is only reachable using /clr:oldSyntax.

The following sample generates C4935:

// C4935.cpp
// compile with: /clr:oldSyntax /W1 /c
public __gc public class X {   // C4935
   int i;

Community Additions

© 2015 Microsoft