From fbe62a117feffe0123ce7cc96b9af1b2e8cac55c Mon Sep 17 00:00:00 2001 From: xieguigang Date: Fri, 22 Nov 2019 23:53:56 +0800 Subject: [PATCH] Update Type.vb fix errors in get type --- Scripting/MetaData/Type.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripting/MetaData/Type.vb b/Scripting/MetaData/Type.vb index ca63e8a2..2619c1b8 100644 --- a/Scripting/MetaData/Type.vb +++ b/Scripting/MetaData/Type.vb @@ -125,7 +125,7 @@ Namespace Scripting.MetaData Public Overloads Function [GetType](Optional knownFirst As Boolean = False, Optional throwEx As Boolean = True, Optional ByRef getException As Exception = Nothing) As Type - Dim type As Type + Dim type As Type = Nothing Dim assm As Assembly If knownFirst Then @@ -151,7 +151,7 @@ Namespace Scripting.MetaData getException = ex End If Finally - type = Nothing + End Try Return type