[英]How do I differentiate between an enum's name from enum index items?
I'm having a terrible time communicating with my teammates when I talk about enums. 当我谈论枚举时,我和队友沟通的时间非常糟糕。 I can never properly differentiate what part of the enum I'm talking about.
我永远无法正确区分我所谈论的枚举的哪个部分。
enum PowerLevel {
Low,
Medium,
High
}
Low
, Medium
, and High
are what part of the enum? Low
, Medium
, High
是枚举的一部分?
What part is PowerLevel
? PowerLevel
是什么部分?
I say that "Powerlevels" is the name of the enumeration. 我说“Powerlevels”是枚举的名称。 "Low", "Medium" and "High" are the members of the enumeration.
“低”,“中”和“高”是枚举的成员。 These are also sometimes called named constants or elements.
这些有时也称为命名常量或元素。
This page actually uses all three names: http://msdn.microsoft.com/en-gb/library/sbbt4032(v=vs.80).aspx 这个页面实际上使用了所有三个名称: http : //msdn.microsoft.com/en-gb/library/sbbt4032(v = vs。80).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.