Hello,
I have defined a C# class that has constants defined.
namespace MySpace
{
public class MyConstants
{
public const int MY_CONST_ONE = 0x01;
}
}
Now in my X++ method I want use this constant. I have added a reference to above assembly in Dynamics AX AOT. But when I try use the constant I get compilation error. IntelliSense also does not show this constant.
void MyXPPMethod()
{
int i;
;
if(i == MySpace.MyConstants.MY_CONST_ONE)
{
;
}
}
How can I solve this problem?
Thanks in advance
*This post is locked for comments
I have the same question (0)