Accessing static fields is similar.
访问静态字段与此类似。
When will the runtime initialize the static fields?
运行库在何时初始化静态字段?
There is no support for synchronized static fields.
不支持同步静态字段。
When defining static fields, things get more complicated.
当定义静态字段时,情况变得更加复杂。
Static fields should not be named m_XXX (Custom naming conventions).
静态字段不能被命名为m_XXX(自定义的命名规范)。
Electro static Fields in ESD process are theoretically analyzed.
分析了静电放电(esd)过程中的静电场。
A class or struct may have instance fields or static fields or both.
类或结构可以拥有实例字段或静态字段,或同时拥有两者。
Support for adding static fields and changing enums (automatic intialization)
支持添加静态属性和修改enums(自动初始化)
At the end of this phase, static fields are initialized to their default values.
在这一阶段末尾,静态字段被初始化成默认值。
Static fields that are neither constants nor read-only are not thread-safe.
不是常数也不是只读字段的静态字段不是线程安全的。
The recommendation from FxCop is to initialize static fields where they are declared.
FxCop建议在声明静态字段的位置对其进行初始化。
Only methods are supported; you cannot declare static fields in an AIDL interface.
只有方法才获得支持;你不能在AIDL接口中声明静态属性。
You can also call static methods on classes and access classes' static fields. Observe!
也可以调用类的静态方法或访问类的静态字段。
Luckily, the latest version of JSR-14 (1.3) outlaws the use of type parameters in static fields.
幸运的是,JSR - 14的最新版本(1.3)宣布在静态字段中使用类型参数是不合法的。
Therefore, you should not rely on class constructors to initialize thread-relative static fields.
因此,您不应依赖于类构造函数来初始化线程相关的静态字段。
The solution of a boundary value of static fields can be divided into two kinds which is analytical and numerical.
静态场边值问题的解法可以分为解析法和数值法两大类。
If your class contains static fields, provide a static constructor that initializes them when the class is loaded.
如果您的类别包含静态栏位,请提供在类别载入时会将其初始化的静态建构函式。
A nice property of thread-static fields is that once the managed thread goes away, they are no longer treated as GC roots.
线程静态字段具有一个很好的属性,即一旦托管线程消失,就不会再将它们视为gc根。
The type of data is returned as an integer that represents the data type. The following static fields (constants) represent the data types
数据的类型作为一个整数返回,该整数表示数据类型。
It is not effective to add a new static synchronized method in a subclass that attempts to protect static fields declared in a superclass.
通过在子类中增加一个静态同步方法来试图保护父类中的静态成员变量是无效的。
Another use for thread-static fields, and one that brings us back to TransactionScope, is for passing out-of-band data between method calls.
线程静态字段的另外一种用法是(这又将我们带回到TransactionScope)用于在方法调用之间传递带外数据。
Whether you use thread-relative static fields or data slots, data in managed TLS is unique to the combination of thread and application domain.
无论是使用线程相关的静态字段还是使用数据槽,托管tls中的数据都是线程和应用程序域组合所独有的。
In the atmosphere, static electric fields (also referred to as electrostatic fields) occur naturally, in fair weather, and especially under thunderclouds.
在大气中,静电场在晴天、特别是雷阵雨时自然产生。
Static fields aren't ideal but are reasonably painless when the value of the constant isn't likely to change — such as the values for the days of the week.
静态字段并不理想,但是当常数值不可能更改(例如一星期内的天数)时,也可以使用这种方法。
It would be much better to simply prevent the programmer from referring to generic types in static fields, as is done in the case of static methods and classes.
象对静态方法和类所做的那样,只要防止程序员在静态字段中引用泛型类型,情况就会好很多。
Constants - final static fields and occasionally final local variables - are written in all uppercase with underscores separating the words, as in MAX_CONNECTIONS.
常量—终态静态字段和临时终态本地变量—全部适用大写字母,并以下划线分隔各词,如MAX_CONNECTIONS。
The Attributes panel shows the instance fields and values associated with the object, and the Statics panel shows the static fields and values associated with the class.
Attributes面板会显示与对象相关的实例域和值,而Statics面板会显示与类相关的静态域和值。
Code that makes common use of static fields or other means of caching data is unsafe for scopes because of the assignment rules, which can result in an IllegalAssignmentError.
由于分配规则的限制,通常使用静态字段或其他缓存数据方式的代码会使范围不安全,可能导致IllegalAssignmentError。
Because these are difficult skills to learn and master, and testing such an object poses its own challenges, static fields are best used to store data that does not change.
由于这些技巧难以学习和掌握,测试这类对象会带来独特挑战,因此最好使用静态字段存储不发生变化的数据。
Each application domain that accesses the assembly must have a separate copy of the static data, to prevent references to objects in static fields from crossing domain boundaries.
访问该程序集的每一应用程序域都必须具有静态数据的单独副本,以避免跨域边界引用静态字段中的对象。
应用推荐