The value of the first enumerated type member is zero or the value of the initializer , if provided 第一個枚舉類型成員的值為零或初始值設定項的值(如果已提供) 。
Visual styles use a set of enumerated types to describe some properties of the elements defined by a style 視覺樣式使用一組枚舉類型來描述樣式定義的元素的一些屬性。
Finally , an enumerated type may , in a schema , be part of a union with a primitive type 最后,模式( schema )中的枚舉類型可能是原始類型的聯(lián)合( union )的一個組成部分。
In addition , enumerated types support having constructors , instance methods , and variables , among other things 此外,枚舉類型支持擁有構造函數(shù)、實例方法和變量,等等。
This concept is getting more into the area of treating each element of an enumerated type as a subclass 這個概念正在深入到將枚舉類型的每個元素作為一個子類對待的領域。
Class has the following series of static methods to get the individual elements out of the enumerated type 類擁有以下一系列的靜態(tài)方法,可以用這些方法從枚舉類型中獲取單個元素:
Listing 1 creates an enumerated type and uses the type - safe usage as an argument to a helper method 清單1將創(chuàng)建一個枚舉類型,并將類型安全的枚舉值作為幫助器方法( helper method )的參數(shù)。
Which i recommend you read as a precursor to this article , you create an enumerated type by creating a named set of objects using the new 中所描述的那樣(推薦您先閱讀這篇文章) ,通過使用新的
An enumerated set works like a collection of features or a subset of values for all the elements of an enumerated type 枚舉集合的作用類似于特性的集合,或者類似于某個枚舉類型的所有元素的值的子集。
Introduces developers to the . net framework value and enumerated types , and demonstrates how to create and work with them 向開發(fā)人員介紹. net framework值類型和枚舉類型,并說明如何創(chuàng)建和使用這些類型。