L
Lloyd Dupont
In C++/CLI I defined an enum like that:
public enum class FontQuality : __int32
{
Default = DEFAULT_QUALITY,
Draft = DRAFT_QUALITY,
Proof = PROOF_QUALITY,
NonAntiAliased = NONANTIALIASED_QUALITY,
AntiAliased = ANTIALIASED_QUALITY,
ClearType = CLEARTYPE_QUALITY,
ClearTypeNatural = CLEARTYPE_NATURAL_QUALITY
};
Now I'm using it in C# library and the compiler warns me that it is not CLS
compliant...
Why is that? (and how to fix it?!)
When I define a similar enum in C# I have no CLS compliance issue!
public enum class FontQuality : __int32
{
Default = DEFAULT_QUALITY,
Draft = DRAFT_QUALITY,
Proof = PROOF_QUALITY,
NonAntiAliased = NONANTIALIASED_QUALITY,
AntiAliased = ANTIALIASED_QUALITY,
ClearType = CLEARTYPE_QUALITY,
ClearTypeNatural = CLEARTYPE_NATURAL_QUALITY
};
Now I'm using it in C# library and the compiler warns me that it is not CLS
compliant...
Why is that? (and how to fix it?!)
When I define a similar enum in C# I have no CLS compliance issue!