ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] - نسخه متنی

G. andrew Duthie; matthew Macdonald

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید










22.6 Delegates


The syntax for a delegate in C#
closely follows the syntax for a method. The
delegate statement is followed by the
delegate's return type (or void,
if there is none) and the delegate name. This in turn is followed by
the delegate's parameter list, in which each
parameter takes the form:

<parameter_type> <parameter_name>

For example:

public delegate void DragEventHandler(
object sender,
DragEventArgs e);

In a VB Delegate statement, the
Delegate keyword is followed by the
Sub keyword (if the delegate returns a
void in C#) or the Function
keyword (if the delegate returns some other value). For example, in
VB, the DragEventHandler delegate has the
following syntax:

Public Delegate Sub DragEventHandler( _
sender As Object, _
e As DragEventArgs)


/ 873