Skip to content

Commit

Permalink
Fix Assembly.GetType(string, bool) throws ArgumentException (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
NemesisXB authored and josesimoes committed Sep 12, 2018
1 parent 7b10260 commit 3c23f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/System/Reflection/Assembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public virtual Type GetType(String name, bool throwOnError)
{
var type = GetType(name);

if (type == null) throw new ArgumentException();
if ( (type == null) && (throwOnError) ) throw new ArgumentException();

return type;
}
Expand Down

0 comments on commit 3c23f49

Please sign in to comment.