I found out that the documentation note for "Files" member of ContentTypes enum appears to be explained as: "Represents content as a List <string> of files" at line 102 in SharpClipboard.cs file.
However it's obvious that if you assign the the value "Files" to a generic List of strings, you get a InvalidCastException. However, if you get the content to a classic string array, it's just fine.
So, I think the return type of ContentTypes for Files member is quite misleading and the documentation text should be corrected as "Represents content as string array", at line 102 which would be fine :)
Hi,
I found out that the documentation note for "Files" member of ContentTypes enum appears to be explained as: "Represents content as a List <string> of files" at line 102 in SharpClipboard.cs file.
However it's obvious that if you assign the the value "Files" to a generic List of strings, you get a InvalidCastException. However, if you get the content to a classic string array, it's just fine.
So, I think the return type of ContentTypes for Files member is quite misleading and the documentation text should be corrected as "Represents content as string array", at line 102 which would be fine :)
Best regards.