Показаны различия между двумя версиями страницы.
axapta:упаковкамассиваобъектов [2018/04/13 22:43] |
axapta:упаковкамассиваобъектов [2018/04/13 22:43] (текущий) |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
+ | http:// | ||
+ | If you want to pack an array with values of the types class, the classes | ||
+ | held by the array must also be able to be packed. Therefore the class that's in the array must implement SysPackable and you | ||
+ | must implement the pack and unpack methods. I presume you are familiar with | ||
+ | these methods.Furthermore the class must have a static method called create. For example: | ||
+ | <code java> | ||
+ | static public MyValueClass create(Container _packedClass) | ||
+ | { | ||
+ | MyValueClass | ||
+ | ; | ||
+ | |||
+ | myValueClass = new MyValueClass(); | ||
+ | myValueClass.unpack(_container); | ||
+ | return myValueClass; | ||
+ | } | ||
+ | </ |