Skip to content

Instantly share code, notes, and snippets.

@AnthonyDGreen
Created February 1, 2019 21:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AnthonyDGreen/37d01c8e7f085e06172bfaf6a1e567d4 to your computer and use it in GitHub Desktop.
Imports System.Reflection
Class ReflectionFoo
Private StringType As Type = GetType(String)
Private StringLengthProperty As PropertyInfo = StringType.GetProperty("Length")
Private StringGetEnumeratorMethod As MethodInfo = StringType.GetMethod("GetEnumerator")
Private StringEnumeratorType As Type = StringGetEnumeratorMethod.ReturnType
Sub New()
Console.WriteLine(StringType)
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment