Willy-Kimura / SharpClipboard

A library for anonymously monitoring clipboard entries.
188 stars 36 forks source link

Documentation error about Files member of ContentTypes enum #25

Open guzelonur opened 2 years ago

guzelonur commented 2 years ago

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.

MontanaCode commented 2 years ago

Yes ... it gives an array of strings representing FilePath\Names.

Willy-Kimura commented 2 years ago

Great thanks @guzelonur. Will be sure to update the docs and summary notes.