Access managed C++ public enum class from C# by Dynamically loading
I have an managed C++ dll lib. It has claas info like below
namespace tests
{
public enum class clours
{
Start = 0;
Red = 1;
Green = 2;
Blue = 3;
End = 4;
}
}
I have written a client application in C# and load the dll dynamically(I am using reflection). I want to access the enum members and values between 'Start' and 'End' from the client application.
Re: Access managed C++ public enum class from C# by Dynamically loading
Originally Posted by mjvalan
I have written a client application in C# and load the dll dynamically(I am using reflection). I want to access the enum members and values between 'Start' and 'End' from the client application.
The enumeration seems well defined. You should be able to access it from your C# application. Are facing any problem in particular?
Bookmarks