Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation error about Files member of ContentTypes enum #25

Open
guzelonur opened this issue Mar 7, 2022 · 2 comments
Open

Documentation error about Files member of ContentTypes enum #25

guzelonur opened this issue Mar 7, 2022 · 2 comments
Labels
docs Requires updating documentation.

Comments

@guzelonur
Copy link

guzelonur commented Mar 7, 2022

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
Copy link

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

@Willy-Kimura
Copy link
Owner

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

@Willy-Kimura Willy-Kimura added the docs Requires updating documentation. label Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Requires updating documentation.
Projects
None yet
Development

No branches or pull requests

3 participants