internal override object GetDeserializeValue(MyStream stream) { byte arrayLength = stream.ReadByte(); Array array = Array.CreateInstance(elementType, arrayLength); for (int i = 0; i < arrayLength; i++) { array.SetValue(SerializeControl.Instance._Deserialize(stream, elementType), i); } return(array); }
internal override object GetDeserializeValue(MyStream stream) { return(stream.ReadByte()); }