Mike Woodring <[EMAIL PROTECTED]> wrote:

> [Barry Kelly]
> > The easiest way is to use one of the Delegate.CreateDelegate() overloads
> > which accepts a "throwOnBindFailure" and pass false; and test for a null
> > return value.
> 
> I'd lean towards that approach over mine, because it delegates (pun
> intended) the actual compatibility check to the CLR - so you get an answer
> right from the horse's mouth.  If/as the rules of compatibility change, your
> code will stay in sync with whatever those rules happen to be over time.

There's only one potential problem with it: all the overloads with the
boolean parameter are .NET 2.0 only.

-- Barry

-- 
http://barrkel.blogspot.com/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to