Jump to content

Recommended Posts

Posted

So I've been looking at adding events to my cardspace "thingy". And I don't want to make it mandatory to accept them; nor do I want to have overrideable methods in a particular class (which won't work anyway, as we access that class via the base type, typical provider model stuff).

 

So I thought about doing something like autoevent wireup in the base class; looking for methods of a particular signature in the provider implementation and adding them to the events if they're there.

 

So I started to trace through the asp.net code. And it's worrying. it ends up in the system.web.regularexpressions assembly; in a class called CalliHelper; which reflector disassembles as

 

internal static void ArglessFunctionCaller(IntPtr fp, object o)

{

*?();

}

 

 

What the heck?!

 

So has anyone had cause to try to emulate event wireups in this way and could give me some ideas of the best way to go about this?

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...