Tuesday, April 27, 2010

Working with CLR null references

In C# if a method has return value of type string it is possible to return null. If you'll try to use this method from AX you'll get exception because null value cannot be marshaled to X++ string (it is not nullable).
To avoid this failure there is a possibility to validate if returned value is null by using CLRInterop::isNull() method.
if (ClrInterop::isNull(myCLRObject.method1()))
    info("Null value was returned");


  1. When I oгigіnally commenteԁ I clicked
    the "Notify me when new comments are added" chеckbox
    and now each time a cоmmеnt is added Ι get three emails
    wіth thе samе comment. Is thегe any wаy you can remove peoрle frοm that
    ѕerνice? Cheers!

    Alsο visіt my webѕite scottgrimes.Net

  2. This is usually considered a fun and effective learning method in general.
    Www. When you're acquainted with these core 7 keys you can start to learn about the black keys (flats and sharps).

    Stop by my webpage ... free piano chords and lyrics

  3. (Thank you rounds are always welcome, of course. Brazenhead is a great place
    to go with your family or for a business lunch or dinner, but if you are looking
    for a party atmosphere, this isn't it. The Bull's Head Pub, Bangkok.

    My webpage ... redtooth Pub quiz answers

  4. I am certain I sometimes have an advantage over bass boats speeding here and there while I quietly work shorelines, coves, and underwater structure.
    They can be found online as well as in many kayak shops across the country and in
    sporting good stores. Now let us look at the specific needs of a kayak fishermen when it comes to his craft.

    Here is my web site ... xxx

  5. ' Satanic Ritual - Decorate the space with human sacrifice, goblets of blood, pentagrams, and things draped in black. Even Halloween parties with the very best Halloween costumes can get dry after everyone's
    seen the costumes to be seen and passed out the candy to the beggars.
    Cranberry studios developed this sequel while publisher
    Anaconda brings it to you in stores.

    Review my site Las Vegas Home Mortgage

  6. (Thank you rounds are always welcome, of course. Anna had been looking
    through my phone while I was naked. 8.

    my web page - pub quiz area

  7. (Thank you rounds are always welcome, of course. * Team answer sheets - Basically a grid lined A4 type sheet with answer write in numbered boxes and a line on top
    for the team name. 28.

    My webpage: Pub quiz Team names

  8. In that case, this kind of question should not be taken from any show telecasted in specific country.

    Local country clubs are offering trivia fun for as little as forty dollars
    per couple. They feature almost nightly drink specials and some form of entertainment every night of the week--DJ's, live music, trivia, you name it.

    Feel free to surf to my website: free pub quiz answers

  9. By dividing up the party at several peoples houses you make
    it easy on yourself. Unfortunately for me as an addict, I need my crime
    fix. That is the new craze in on the internet gaming,
    and numerous girls and teens are possessing a blast.

    Here is my webpage doctissimo

  10. The decor on the inside of the restaurant is absolutely beautiful.
    *Rounds table format. The Bull's Head Pub, Bangkok.

    Here is my weblog :: pub quiz archives