Skip to content

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented May 10, 2019

Summary

Several members of System.Console throw PlatformNotSupportedExceptions on Non-Windows. This wasn't previously documented.

CC @calope

@carlossanlop
Copy link
Contributor

Adding @rpetrusha @mairaw. Can you please take a look?
https://github.com/dotnet/corefx/issues/37579 has the context for this change.

@@ -3314,6 +3328,8 @@

As a result of the assignment, <see cref="P:System.Console.WindowLeft" /> plus <see cref="P:System.Console.WindowWidth" /> would exceed <see cref="P:System.Console.BufferWidth" />.</exception>
<exception cref="T:System.IO.IOException">Error reading or writing information.</exception>
<exception cref="T:System.PlatformNotSupportedException">The set operation is invoked on an operating system other than Windows.</exception>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Extra space:

Suggested change

@carlossanlop
Copy link
Contributor

Looks good to me. I left a nit comment. Let's wait for the Docs team review so they can merge it.

Copy link

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding these changes, @wtgodbe. I've addressed the suggestion from @carlossanlop. I've approved your PR, and I'll merge when the build completes successfully.

@mairaw mairaw merged commit 65efde3 into dotnet:master May 11, 2019
@mairaw mairaw added the doc-enhancement Improve the current content label May 11, 2019
@mairaw mairaw added this to the May 2019 milestone May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants