To convert an enum
type to an int
type in C#, you can use type casting. You can simply assign the value of the enum
type to a variable of type int
. For example:
C# — How to cast int to enum (en)?
Добавить комментарий
To convert an enum
type to an int
type in C#, you can use type casting. You can simply assign the value of the enum
type to a variable of type int
. For example:
NuGet package configuration is invalid error if you move the project to a subfolder in Solution Explorer
To solve this problem, you can:
If the problem persists, you need to follow these steps:
Читать далее