title: Clipboard + PresentationFramework = OutOfMemoryException?
body: <p>Why does <code>System.Windows.Clipboard</code>(PresentationCore.dll) is not friendly with the 
  <code>System.Windows.Thickness</code> (PresentationFramework.dll) but friendly with <code>System.Windows.Point</code> (WindowsBase.dll)</p>
  
  <pre><code>using System;
  namespace ConsoleApplication5 {
      class Program {
          /*
          * Add references to 
          * WindowsBase.dll (Point)
          * PresentationFramework.dll (Thickness)
          * PresentationCore.dll (Clipboard)
          */
  
          [STAThread]
          static void Main(string[] args)
          {
              Test myTest = new Test();
              System.Windows.Clipboard.SetData("myformat", myTest);
              // OutOfMemoryException
              Object myPastedTest = System.Windows.Clipboard.GetData("myformat");
          }
      }
  
      [Serializable]
      class Test
      {
          // COMMENT THE LINES BELLOW PresentationFramework TO WORK OK!
          // PresentationFramework.dll
          //public System.Windows.Thickness MyThickness { get; set; } 
          public System.Windows.Media.Brush MyBrush { get; set; }
  
          // WindowsBase.dll
          public System.Windows.Point MyPoint { get; set; }
  
      }
  }
  </code></pre>