Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Generate method bodies for Delegate.Begin/EndInvoke - #1027

Merged
MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:beginInvoke
Mar 18, 2016
Merged

MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:beginInvoke

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

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.

@jkotas

jkotas commented Mar 18, 2016

Copy link
Copy Markdown
Member

@terrajobst @KrzysztofCwalina Is there guidance on when to use NotSupportedException vs PlatformNotSupportedException?

@jkotas

jkotas commented Mar 18, 2016

Copy link
Copy Markdown
Member

LGTM otherwise

@KrzysztofCwalina

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

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

Based on that I made it throw a PlatformNotSupportedException and I'll file an issue to fix it in CoreCLR.

MichalStrehovsky added a commit that referenced this pull request Mar 18, 2016
Generate method bodies for Delegate.Begin/EndInvoke
@MichalStrehovsky
MichalStrehovsky merged commit 88d50c2 into dotnet:master Mar 18, 2016
@MichalStrehovsky
MichalStrehovsky deleted the beginInvoke branch March 18, 2016 23:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants