Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@steveisok
Copy link
Contributor

#16010

The current behavior for GetConstructorCandidates when the name is null, "",
or "*" is to return the set of constructors for the type. For "", .NET Core and
.NET Framework return 0 elements. This PR adds a check for "" to match that
behavior.

mono#16010

The current behavior for GetConstructorCandidates when the name is null, "",
or "*" is to return the set of constructors for the type. For "", .NET Core and
.NET Framework return 0 elements.  This PR adds a check for "" to match that
behavior.
@steveisok steveisok requested a review from akoeplinger as a code owner August 6, 2019 12:54
@steveisok steveisok requested a review from EgorBo August 6, 2019 12:57
@steveisok
Copy link
Contributor Author

@monojenkins build Linux ARMv5

@steveisok
Copy link
Contributor Author

@monojenkins build failed

@marek-safar
Copy link
Member

@monojenkins backport 2019-08

@marek-safar
Copy link
Member

@monojenkins backport 2019-06

@akoeplinger akoeplinger merged commit 64ea10f into mono:master Aug 8, 2019
akoeplinger pushed a commit that referenced this pull request Aug 8, 2019
…elements. (#16109)

* Fixed RuntimeType.GetConstructorCandidates("") to return 0 elements.

#16010

The current behavior for GetConstructorCandidates when the name is null, "",
or "*" is to return the set of constructors for the type. For "", .NET Core and
.NET Framework return 0 elements.  This PR adds a check for "" to match that
behavior.

* Removed unncessary changes

* Unnecessary spaces

* Made the if check a bit more readable

Backport of #16054.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants