/// <summary> /// <para>Serialize the class data to a stream.</para> /// </summary> /// <param name="writer"> /// <para>The <see cref="IPrimitiveWriter"/> that writes to the /// stream.</para> /// </param> public void Serialize(IPrimitiveWriter writer) { TypeId.SerializeValue(writer); ObjectId.SerializeValue(writer); }