If you have this piece of code.

```vbnet Public Class Test Private WithEvents _Obj as ObjectWithEvents

… End Class``` And you want to get the Value of that field via reflection using C# because for some reason you just do. Trust me.

csharp var objectWithEvents = testinstance.GetType().GetField("_Obj", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(testinstance); Then know that the above will fail. Because VB.Net just happens to add an extra underscore to fields marked with WithEvents. So this will work.

csharp var objectWithEvents = testinstance.GetType().GetField("__Obj", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(testinstance); I should try if that gives the same result when reflected from VB.Net but I’m pretty certain of it, so I won’t. It could also be that I already wrote about this before. But I forgot and Google didn’t give me anything.