September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -0,0 +1,15 @@
|
|||
Imports System.Reflection
|
||||
|
||||
' MyClass is a VB keyword.
|
||||
Public Class MyClazz
|
||||
Private answer As Integer = 42
|
||||
End Class
|
||||
|
||||
Public Class Program
|
||||
Public Shared Sub Main()
|
||||
Dim myInstance = New MyClazz()
|
||||
Dim fieldInfo = GetType(MyClazz).GetField("answer", BindingFlags.NonPublic Or BindingFlags.Instance)
|
||||
Dim answer = fieldInfo.GetValue(myInstance)
|
||||
Console.WriteLine(answer)
|
||||
End Sub
|
||||
End Class
|
||||
Loading…
Add table
Add a link
Reference in a new issue