This is true for both static members and instance members.
对于静态成员和实例成员来说,都是正确的。
Enclosing type parameters should not be referred to inside static members.
不应在静态成员中引用封闭类型参数。
You also cannot derive from Static1, or add any non-static members to the class.
您也不能从Static1派生,或者向该类添加任何非静态成员。
As I alluded to earlier, the CLR does not support the inheritance of static members.
我在前面已经提到过,CLR不支持静态成员的继承。
Another important addition to PHP V5 is support for static members and methods on classes.
PHPV 5中的另一个重要的新功能是支持对类使用静态成员和方法。
只包含静态成员。
It is generally used in classes that contain static members only.
它通常用在只包含静态成员的类中。
Therefore, they should be declared as static members of the class.
因此,应该将它们声明为此类的静态成员。
To demonstrate static members, consider a class that represents a company employee.
为了说明静态成员,请看一个表示公司雇员的类。
When would you use a class with static members and when would you use a Singleton class?
什么时候使用带有静态成员的类,什么时候使用单例?
PHP V5.3 has added several features to enhance the support for static members and methods within a class.
PHPV5.3提供一些特性来增强对类的静态成员和方法的支持。
In init , I add the texture coordinates that are defined as the class's static members to the VertexBuffer.
在init中,向VertexBuffer增加了定义为类的静态成员的纹理坐标。
You can then store these Settings in static members of the class, making the value available to subsequent messages.
然后,您可以将这些设置保存在类的静态成员中,以便后续的消息可以使用其值。
Using reflection techniques on static members of a type differs slightly from reflecting on instance members of an object.
在类型的静态成员上使用反射技术与在对象的实例成员上进行反射有一点小小的差别。
The system calls the static constructor before the first instance of the type is created or any static members are referenced.
系统在创建第一个类型实例或引用任何静态成员之前调用静态构造函数。
The static members being referenced do not have to come from specific framework assemblies associated with XAML schema context.
被引用的静态成员不一定来自与XAML架构上下文相关联的特定框架程序集。
A static constructor is called automatically to initialize the class before the first instance is created or any static members are referenced.
在建立第一个执行个体或参考任何静态成员之前,就会自动呼叫静态建构函式以初始化类别。
You can map other assemblies and CLR namespaces for XAML usage and then can refer to static members of types in XAML using the prefix you mapped.
可以为xaml用法映射其他程序集和CLR命名空间,然后使用您映射的前缀在XAML中引用类型的静态成员。
Support for importing constants: This facility allows static methods and fields to be imported, avoiding the need to use fully qualified class names when accessing static members.
支持导入常量:这个特性使静态方法和字段能够被导入,这样在访问静态成员时就不必使用完全限定的类名。
If a class contains only static members, remember to mark the class as static or seal the class (NotInheritable) and give the class a private constructor to avoid instance creation.
如果类只包含静态成员,则要记得将该类标记为静态,或者密封该类(NotInheritable),并且还要为该类提供一个私有构造函数,以避免实例创建。
Static members and methods cannot be re-defined in subclasses.
静态成员不能在子类中被重新定义。
Static members must be initialized in a definition outside the class declaration.
静态成员必须在类声明外的定义中进行初始化。
Static members are initialized before the static member is accessed for the first time and before the static constructor, if there is one, is called.
静态成员会在第一次受到存取前,以及静态建构函式(如果有)受到呼叫之前进行初始化。
Static members are initialized before the static member is accessed for the first time and before the static constructor, if there is one, is called.
静态成员会在第一次受到存取前,以及静态建构函式(如果有)受到呼叫之前进行初始化。
应用推荐