Best Practices for Classes
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Use the following guidelines when you construct classes:
The Microsoft Dynamics AX guidelines for class declarations, constructors and destructors, methods, X++ programming, and Where to Place the Code
The Microsoft Dynamics AX Class Design Patterns
Commonly accepted theory within object-oriented programming, including C# programming
Objects in the class should be stable, and they should be easy and predictable to use and construct.
When you design your class, it should fall into one of the following concepts:
A class that represents an object
An action class
A supporting class
See also
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.