G
Guest
Hi,
I need the equivalent of a pointer to a member function (as used in C++) but
in C# 2.0. I know it must be a special way of using delegates but don't know
how to make the function associated with the delegate capable of accessing
the private parts of the class.
For example, in C++ one would have:
typedef bool (CSomeClass::*TAGTEXTFUNC)( CString &rstr );
so that we could assign any method of CSomeClass to TAGTEXTFUNC, and be able
to access private parts of CSomeClass. How can one accomplish this in C#?
I need the equivalent of a pointer to a member function (as used in C++) but
in C# 2.0. I know it must be a special way of using delegates but don't know
how to make the function associated with the delegate capable of accessing
the private parts of the class.
For example, in C++ one would have:
typedef bool (CSomeClass::*TAGTEXTFUNC)( CString &rstr );
so that we could assign any method of CSomeClass to TAGTEXTFUNC, and be able
to access private parts of CSomeClass. How can one accomplish this in C#?