From 0b7060519ef750cc3103cd9655d418b689a80961 Mon Sep 17 00:00:00 2001 From: Tiaan Alberts <485436+NemesisXB@users.noreply.github.com> Date: Thu, 6 Sep 2018 20:55:49 +0200 Subject: [PATCH] Fix issue 398 Signed-off-by: Tiaan Alberts <485436+NemesisXB@users.noreply.github.com> --- source/System/Reflection/Assembly.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/System/Reflection/Assembly.cs b/source/System/Reflection/Assembly.cs index e7899bd8..b5df222d 100644 --- a/source/System/Reflection/Assembly.cs +++ b/source/System/Reflection/Assembly.cs @@ -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; }