none
Get the Data From the Delegate RRS feed

  • Question

  • I need to  get the data from the delegate... . 

    In  report toolkit,   they get the data from the methods only. but i use the delegate instead of method.. . 

    So, i struct to continue my work. . pls help me to solve the issue.. .

    Wednesday, March 6, 2013 7:32 AM

Answers

  • Can you give an example??

    Not sure if it answers your question but you can execute a delegate like this.

    private void Func()

    {

    delegate someDelegate = functionName;

    int i = someDelegate();

    }

    int functionName()

    {

    return 5;

    }


    • Proposed as answer by DesiTerror Wednesday, March 6, 2013 9:49 AM
    • Marked as answer by Ramkumar.B Friday, March 8, 2013 1:35 PM
    Wednesday, March 6, 2013 9:49 AM