public override void SetData(TransferDataType type, Func <object> dataSource)
{
if (type == null)
{
throw new ArgumentNullException("type");
}
if (dataSource == null)
{
throw new ArgumentNullException("dataSource");
}
if (type == TransferDataType.Html)
{
WindowsClipboard.SetData(type.ToSwf(), GenerateCFHtml(dataSource().ToString()));
}
else
{
WindowsClipboard.SetData(type.ToSwf(), dataSource());
}
}