How to serialize a DateTimeOffset into a binary stream
<p>I'm wondering what would be the best way to serialize a <code>DateTimeOffset</code> into a binary stream (using a <code>BinaryWriter</code>) and deserialize it again (using a <code>BinaryReader</code>).</p>

<p>To serialize a <code>DateTime</code>, I have:</p>

<pre><code>    public void WriteValue(DateTime value)
    {
        _writer.Write(value.ToBinary());
    }
</code></pre>

<p>and</p>

<pre><code>    public DateTime ReadDateTime()
    {
        return DateTime.FromBinary(_reader.ReadInt64());
    }
</code></pre>

<p>What is the best approach to serialize/deserialize a <code>DateTimeOffset</code> in terms of performance and storage size?</p>