Fixed RuntimeType.GetConstructorCandidates("") to return 0 elements. (#16054)
commit64ea10fbcd5e526cefcdcb98a60f041a638facfe
authorSteve Pfister <steveisok@users.noreply.github.com>
Thu, 8 Aug 2019 10:14:39 +0000 (8 06:14 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 8 Aug 2019 10:14:39 +0000 (8 12:14 +0200)
tree156d7e23b23fe7142bb10fa79c76d679f3eb66f9
parentc189afd4f5ccdd5792a09245b5026d8a383c97ec
Fixed RuntimeType.GetConstructorCandidates("") to return 0 elements. (#16054)

https://github.com/mono/mono/issues/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.
mcs/class/referencesource/mscorlib/system/rttype.cs