ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Top Ten Gotchas in Upgrading to .NET Framework 1.1
Subject:   private delegates dont work anymore
Date:   2003-06-25 15:12:58
From:   anonymous2
in 1.0 a delegate could be instantiated using a private or internal method. Because you handed this off to your caller the runtime allowed the caller to call it even though the caller would not normally be allowed to call it (you were effectrivley granting specifc permission for your method to be called - I actually quite like this becuase I only want the method called as a delegate). In 1.1 this doesnt work, the delegate call fails.