Dynamics AX
  RSS Feed  LinkedIn  Twitter
Want to turn you're data into a true asset? Ready to break free from the report factory?
Ready to gain true insights that are action focused for truly data informed decisions?
Want to do all of this across mutliple companies, instances of Dynamics and your other investments?
Hillstar Business Intelligence is the answer then! (www.HillstarBI.com)

Hillstar Business Intelligence for Microsoft Dynamics AX and NAV on Mobile, Desktop, Tablet


Let us prove to you how we can take the complexity out of the schema and truly enable users to answer the needed questions to run your business! Visit Hillstar Business Solutions at: www.HillstarBI.com

Wednesday, September 02, 2009

X++ byref for .Net reference and out method parameters

Since we are on the topic if integrations for our current post threads, I thought I would point out something very interesting.

In Dynamics AX 4.0 and before, if you had a .Net assembly or some of the COM or API call that made use of reference or our method parameters, you would have to wrap this integration in .Net 2.0 and expose such methods through much simplier calls with normal method parameters that are sent in.

In Dynamics AX 2009, the byref keyword was added, so that you do not have to do this anymore. You can now make calls to such methods that make use of reference or out method parameters.

You can find more about this here.: How to: Use the byref Keyword for CLR Interop

I myself have had to create such .Net wrappers around integration points that made such use of reference or out method parameters. Now that layer can go away with Dynamics AX 2009.

This opens up a good path of possibilities, and takes away a layer of abstraction that only existed because of X++ limits.

Well that's all for now, check back soon!




"Visit the Dynamics AX Community Page today!"


Labels: , , , , ,

1 Comments:

Blogger Kjetil said...

You should be aware of the fact that there is a bug when using the keyword ByRef. This does not work if called on the server tier.

6:45 AM  

Post a Comment

<< Home


Copyright 2005-2011, J. Brandon George - All rights Reserved