title: Extract and compare eventargs data
body: <p>I have a problem comparing data I get from an eventargument, to be more specific, I have 2 classes that uses an interface, lets call it 'IInt'. I also have a list that is filled with objects of these two classes.</p>
  
  <p>I currently use the OnDragDrop event to drag objects from this list, but I need a way to determine if it was an object of class1 or class2 that I draged. Is there a way to extract the data and compare it using the DragEventArgs drgevent? </p>
  
  <p>So first of all, when I grab an object from the list.</p>
  
  <pre><code>foreach (IInt d in dlist)
      DoDragDrop(d.GetType(), DragDropEffects.Move);
  </code></pre>
  
  <p>And when I want to extract the data ie check what object was draged.</p>
  
  <pre><code>    protected override void OnDragDrop(DragEventArgs drgevent)
      {
          if (drgevent.GetType() == typeof(DragedObject))
              do stuff...
      }
  </code></pre>