Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Access .NET Enum in X++

$
0
0

Hi,

i think there is something missing in accessing enums from x++. Can someone please confirm the following.

You can access enums declared on the namespace-level like this:

namespace Demo
{
   public enum Gender
   {
       Male,
       Female
   }
   public class Test
   {
   }
}

You cannot access enums defined in a class like this:

namespace Demo
{
   public class Test
   {
       public enum Gender
       {
           Male,
           Female
       }
   }
}

Kind regards

Andi


Viewing all articles
Browse latest Browse all 72043


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>