The Problem:
MyClass object not initialized.
I think I must cast, but don't know how to do this in Dynamics AX.
I develop in MS Dynamics AX 2012.
MyExampleDataContract exampleDataContract = new MyExampleDataContract();
while (listEnumerator.moveNext())
{
exampleDataContract = listEnumerator.current();
info(exampleDataContract.parmCustomerId()); //This gives an error.
}
A list element can be null.
List l = new List(Types::Class);
;
l.addEnd(null);
info(int2str(l.elements()));