I have an item that I placed on the clipboard as follows:
Clipboard.SetDataObject(slide);
slide is type SlideType.
Now I'm trying to read the data from the clipboard doing:
foreach (System.Type type in this.slideModules.Values)
{
if (Clipboard.GetDataObject().GetDataPresent(type))
{
Clipboard.GetDataObject().GetData(type);
break;
}
}
However, on the GetData() line, I receive a FileNotFoundException
claiming that SlideType was not found. I suspect the issue is that
SlideType is actually loaded via reflection (it's in a dll I'm loading
at runtime). Is there anyway to get the clipboard to work with types
loaded through reflection?