Guest User

Untitled

a guest
Jan 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Dim proxyType As Type = GetType(System.Net.WebProxy)
  2. MsgBox(proxyType.FullName)
  3.  
  4. Dim reflProxyType As Type = Type.GetType(proxyType.FullName)
  5. MsgBox(reflProxyType.FullName) ' Here, reflProxyType is null => NullReferenceException
  6.  
  7. Dim systemType As Type = GetType(System.Text.StringBuilder)
  8. MsgBox(systemType.FullName)
  9.  
  10. Dim reflSystemType As Type = Type.GetType(systemType.FullName)
  11. MsgBox(reflSystemType.FullName) ' Here, everything works fine
Add Comment
Please, Sign In to add comment