Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Split TypeLoadException throw helper into two #2143

Merged
merged 1 commit into from
Nov 5, 2016

Conversation

nattress
Copy link
Contributor

@nattress nattress commented Nov 4, 2016

The optional messageArg parameter causes a request for a null string
token when building the TypeSystemThrowingIL helper if one of the
TypeLoadException constructors is called using the default null value
for messageArg.

Split the constructors in TypeSystemException to ensure the base
exception args array only contains the arguments passed in. This
requires a new ThrowHelper which takes one fewer parameters, along with
a new CreateTypeLoadException helper with the same signature.

The optional messageArg parameter causes a request for a null string
token when building the TypeSystemThrowingIL helper if one of the
TypeLoadException constructors is called using the default null value
for messageArg.

Split the constructors in `TypeSystemException` to ensure the base
exception args array only contains the arguments passed in. This
requires a new ThrowHelper which takes one fewer parameters, along with
a new `CreateTypeLoadException` helper with the same signature.
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thanks!

@nattress nattress merged commit cf8b1b8 into dotnet:master Nov 5, 2016
@nattress nattress deleted the TypeLoadExceptionHelper branch June 26, 2017 18:17
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.

3 participants