Compiler Warning (level 4) C4434
a class constructor must have private accessibility; changing to private access
C4434 indicates that the compiler changed the accessibility of a static constructor. Static constructors must have private accessibility, as they are only meant to be called by the common language runtime. For more information, see Static constructors.
Example
The following sample generates C4434.
// C4434.cpp
// compile with: /W4 /c /clr
public ref struct R {
static R(){} // C4434
};
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for