/// <summary> /// <para>Deserialize the class data from a stream.</para> /// </summary> /// <param name="reader"> /// <para>The <see cref="IPrimitiveReader"/> that extracts used to extra data from a stream.</para> /// </param> /// <param name="version"> /// <para>The value of <see cref="CurrentVersion"/> that was written to the stream when it was originally serialized to a stream; the version of the <paramref name="reader"/> data.</para> /// </param> public void Deserialize(IPrimitiveReader reader, int version) { if (version == 1) { TypeId = DataBuffer.DeserializeValue(reader); ObjectId = StorageKey.DeserializeValue(reader); } else { reader.Response = SerializationResponse.Unhandled; } }