Example: dental hygienist
Advanced C#
• A delegate variable stores a method and its receiver, but no parameters ! new Notifier(myObj.SayHello); • obj can be this (and can be omitted) new Notifier(SayHello) • Method can be static. In this case the class name must be specified instead of obj. new Notifier(MyClass.StaticSayHello);
Download Advanced C#
Information
Domain:
Source:
Link to this page: