Need a scenario where would fail Array.ConstrainedCopy()
<p>Just playing around with some of the APIs in .NET and I can't seem to find a way to cause Array.ConstrainedCopy() fail.</p>

<p>According to MSDN, it's treated as an atomic operation. If it fails during the copy, the entire call fails resulting in no elements being copied as opposed to its Array.Copy() counterpart.</p>

<p>Can someone demonstrate this or tell me how to do this?</p>

<p>This code fails in both types of copy. I'd like to see an example of Array.Copy() only copying some elements to get a better understanding of where I might use either forms of copy.</p>

<pre><code>object[] yer = new object[] { "as", "qwe", "re", 1 };

    string[] copy = new string[yer.Length];

    Array.ConstrainedCopy(yer, 0, copy, 0, yer.Length); // runtime error

    Array.Copy(yer, 0, copy, 0, yer.Length); //runtime error
</code></pre>
