/// <summary> /// Creates an array instance described by the CompositeArrayData instance /// </summary> public virtual object MakeNewArrayInstance(CompositeArrayData arrayData) { var clrElementType = ResolveType( arrayData.Type.ArrayElementType ); return Array.CreateInstance(clrElementType, arrayData.ArrayDims); }
public virtual void DeserializeArray(Array array, CompositeArrayData data) { var idx = 0; SerializationUtils.WalkArrayRead(array, () => data.ArrayData[idx++] ); }