<p>Could anyboby help me with the alternative solution in C# regarding <strong>AddressOf operator in VB6</strong>? AddressOf returns a long value. What way can I get the output in C#?</p>

C# has special syntax for assigning functions to delegates/events.  Just use
```
<delegate> += <function>;
```
If you're actually trying to get the address for some other use, you're out of luck.  One of the things about managed code is that these addresses aren't necessarily fixed.  While it would be unlikely that most functions would ever change there are circumstances where it's possible.