private void StartArray(ArrayValue array) { // the caller has already written a type code to indicate an // array is starting. sbyte type = array.Type; buf.PutByte(type); if (type == TypeCode.CUSTOM) { WriteType(array.CustomStructType); } WriteIntValue(array.Dim); WriteIntValue(array.Size()); }