Multidelegate with a returned value
-
Dear All: I am a bit confused about the delegate with a returned value. For example, I have a delegate as:
public delegate int Adelegate(MyClass instance)
Like this, what happens to the returned value if I use multi delegate please? Further, if the delegate returns a bool, how can I declare a delegate that output a bool value please? Should I declare it in the parameters or the return value? Thanks
Asura
-
Dear All: I am a bit confused about the delegate with a returned value. For example, I have a delegate as:
public delegate int Adelegate(MyClass instance)
Like this, what happens to the returned value if I use multi delegate please? Further, if the delegate returns a bool, how can I declare a delegate that output a bool value please? Should I declare it in the parameters or the return value? Thanks
Asura
Hope u can get from the following resources. http://en.csharp-online.net/Delegates_and_Events%E2%80%94Retrieving_Values_from_Multicast_Delegates[^] http://msdn.microsoft.com/en-us/vcsharp/bb508935.aspx[^] Regards