예제 #1
0
        public virtual void DeserializeArray(Array array, CompositeArrayData data)
        {
            var idx = 0;

            SerializationUtils.WalkArrayRead(array, () => data.ArrayData[idx++]);
        }
예제 #2
0
        /// <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));
        }