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.7 Enumerations


C# uses the
enum statement along with opening and closing
braces to indicate the beginning and end of an enumeration
definition. For example:

public enum CheckedState {
// enumeration members
}

In VB, an enumeration is defined by the Enum... End
Enum
construct. For example, the VB version of the
CheckedState enum declaration is:

Public Enum CheckedState
' enumeration members
End Enum

In both C# and VB, the member listing consists of the name of the
enumerated member and its value. These are identical in C# and VB,
except that C# adds a comma to separate one member of the enumeration
from another, whereas VB requires that they be on separate lines. For
example, the full declaration of the CheckedState
enumeration in C# is:

public enum CheckedState {
Unchecked = 0,
Checked = 1,
Indeterminate = 2
}

The VB equivalent is:

Public Enum CheckedState
Unchecked = 0
Checked = 1
Indeterminate = 2
End Enum


/ 873