You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: