Interline Publishing
 info@interlinepublishing.com +91 98867 328 23 / 24 / 25   +91 80 2333 2824 Sign Up   Sign In
Interline Publishing
Skip to Reader

Set up video

    Subscription offer
         (Unlimited Download)
Amount Validity
र 100 6 months
र 200 1 year
     
Delegate, Events and Exception Handling
SUBJECT : .NET Technologies
AUTHOR : Namratha K
PUBLISHED ON : 11/03/17
NUMBER OF PAGES : ( 22 Pages)
PRICE : Rs 11

Creating delegate objects: You can create an object of a delegate using the following syntax: Delegate-name object-name = new Delegate-name(expression); Where, delegate-name: is the name of the delegate declared object-name: is the name of the delegate object expression: what you want to encapsulate into the delegate object and it can be name of the method or instance of the delegate type. Example: delegate object type is created to hold reference of static add() method. Compute cmp1 = new Compute(MyDelegate.add); delegate object type is created to hold reference of instance subtract() mehtod. MyDelegte mdt= new MyDelegate(); Compute cmp2 = new Compute(mdt.subtract);


 
Home
About Us
Payments
Contact Us
Claims
Help
Advertising Guidelines
Safe and Secure Payment
All major credit and debit cards are accepted.
Policies: Terms of Use | Privacy    Copyright © 2019 Interline Publishing. All rights reserved.