Update Type.vb

fix errors in get type
This commit is contained in:
xieguigang 2019-11-22 23:53:56 +08:00
parent fd31ace5cb
commit fbe62a117f
1 changed files with 2 additions and 2 deletions

View File

@ -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