Код в D365FO:
X++:
public boolean unpack(container _packedClass)
{
boolean success = false;
Version version = RunBase::getVersion(_packedClass);
container packedCollection;
switch (version)
{
case #CurrentVersion:
[version, #CurrentList, packedCollection] = _packedClass;
oneToManyCollection = Map::create(packedCollection);
success = true;
break;
}
return success;
}