This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Generate method bodies for Delegate.Begin/EndInvoke - #1027
Merged
Merged
Conversation
Member
|
@terrajobst @KrzysztofCwalina Is there guidance on when to use NotSupportedException vs PlatformNotSupportedException? |
Member
|
LGTM otherwise |
Member
|
PlatfromNotSupported means: this OS/runtime enviroment (e.g. UWP) does not support this feature. Meaning the same code could run fine if moved to a different OS/environment. NotSupported is for other cases, e.g. writing to a read-only stream. |
The generated method bodies throw an exception.
MichalStrehovsky
force-pushed
the
beginInvoke
branch
from
March 18, 2016 20:39
690f79e to
998377a
Compare
Member
Author
|
Based on that I made it throw a |
MichalStrehovsky
added a commit
that referenced
this pull request
Mar 18, 2016
Generate method bodies for Delegate.Begin/EndInvoke
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm going with the NotSupportedException that CoreCLR throws. Project N throws PlatformNotSupportedException. I'm not sure which one is better (Platform?), but we should standardize on one.
I'll file a bug in the respective product once we decide on the direction.