Enumerations
Số trang: 2
Loại file: pdf
Dung lượng: 10.69 KB
Lượt xem: 14
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
[ Team LiB ] A.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 CommandType { // Enumeration members }
Nội dung trích xuất từ tài liệu:
Enumerations[ Team LiB ]A.7 EnumerationsC# uses the enum statement along with opening and closing braces, { }, to indicate thebeginning and end of an enumeration definition. For example:public enum CommandType { // Enumeration members}In VB, an enumeration is defined by the Enum... End Enum construct. For example, theVB version of the CommandType enum declaration is:Public Enum CommandType enumeration membersEnd EnumIn both C# and VB, the member listing consists of the name of the enumerated memberand its value. These are identical in C# and VB, except that C# adds a comma to separateone member of the enumeration from another, whereas VB requires that they be onseparate lines. For example, the full declaration of the CommandType enumeration in C#is:public enum CommandType { Text = 1, StoredProcedure = 4, TableDirect = 512}The VB equivalent is:Public Enum CommandType Text = 1 StoredProcedure = 4 TableDirect = 512End Enum[ Team LiB ]
Nội dung trích xuất từ tài liệu:
Enumerations[ Team LiB ]A.7 EnumerationsC# uses the enum statement along with opening and closing braces, { }, to indicate thebeginning and end of an enumeration definition. For example:public enum CommandType { // Enumeration members}In VB, an enumeration is defined by the Enum... End Enum construct. For example, theVB version of the CommandType enum declaration is:Public Enum CommandType enumeration membersEnd EnumIn both C# and VB, the member listing consists of the name of the enumerated memberand its value. These are identical in C# and VB, except that C# adds a comma to separateone member of the enumeration from another, whereas VB requires that they be onseparate lines. For example, the full declaration of the CommandType enumeration in C#is:public enum CommandType { Text = 1, StoredProcedure = 4, TableDirect = 512}The VB equivalent is:Public Enum CommandType Text = 1 StoredProcedure = 4 TableDirect = 512End Enum[ Team LiB ]
Tìm kiếm theo từ khóa liên quan:
công nghệ thông tin kỹ thuật lập trình Oreilly Ado Dot Net Cookbook Ebook-Lib EnumerationsGợi ý tài liệu liên quan:
-
52 trang 430 1 0
-
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 314 0 0 -
74 trang 299 0 0
-
96 trang 293 0 0
-
Báo cáo thực tập thực tế: Nghiên cứu và xây dựng website bằng Wordpress
24 trang 289 0 0 -
Đồ án tốt nghiệp: Xây dựng ứng dụng di động android quản lý khách hàng cắt tóc
81 trang 281 0 0 -
EBay - Internet và câu chuyện thần kỳ: Phần 1
143 trang 275 0 0 -
Tài liệu dạy học môn Tin học trong chương trình đào tạo trình độ cao đẳng
348 trang 269 1 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 265 0 0 -
Tài liệu hướng dẫn sử dụng thư điện tử tài nguyên và môi trường
72 trang 265 0 0