MyAutoScaleFactor may cause a runtime exception because it is a field of a marshal-by-reference class
<pre><code>return new Size(bounds.Right - bounds.Left + (int)(form.MyAutoScaleFactor.Width * 4), bounds.Bottom - bounds.Top);
</code></pre>

<p>but i get warning of </p>

<pre><code>Warning 2   Accessing a member on 'NonFullscreen.MessageBoxForm.MyAutoScaleFactor' may cause a runtime exception because it is a field of a marshal-by-reference class  C:\Projekti\Skladiscenje\Skladiscenje\NonFullscreen\MessageBoxForm.cs   244 60  NonFullscreen
</code></pre>

<p>how can i prevent runtime exception?</p>
