










A delegate type is specified by a distinct signature, which includes a unique identifier, parameter list, and return type. The following code shows how to declare a delegate:
public delegate double UnitConversion(double from);
You can add multiple delegates with the + operator. The following code shows another way to do this (assuming 3 conversion options were chosen by the user):
conversions =
dels.GetConversionMethod(conversionTypes[0]) +
dels.GetConversionMethod(conversionTypes[1]) +
dels.GetConversionMethod(conversionTypes[2]);
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)