public Level Level { get { return level; } set { level = value; } }
Jeg er godt klar over der er navnesammenfald, men enum'en er på klassen og propertyen er på instansen af klassen, så der burde ikke være noget logisk problem med det. Eller er der?
The members of a class are divided into the following categories: • Constants, which represent constant values associated with that class (§17.3). • Fields, which are the variables of that class (§17.4). • Methods, which implement the computations and actions that can be performed by that class (§17.5). • Properties, which define named characteristics and the actions associated with reading and writing those characteristics (§17.6). • Events, which define notifications that can be generated by that class (§17.7). • Indexers, which permit instances of that class to be indexed in the same way as arrays (§17.8). • Operators, which define the expression operators that can be applied to instances of that class (§17.9). • Instance constructors, which implement the actions required to initialize instances of that class (§17.10) • Destructors, which implement the actions to be performed before instances of that class are permanently discarded (§17.12). • Static constructors, which implement the actions required to initialize that class itself (§17.11). • Types, which represent the types that are local to that class (§16.5).
Ja det er klart. Nogen der vil have pts. så lukker jeg spørgsmålet igen. Tak fordi I gad være med at snakke om noget der egentligt er så ligegyldigt :-)
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.