• 运行库何时初始静态字段

    When will the runtime initialize the static fields?

    youdao

  • 定义静态字段时,情况变得更加复杂

    When defining static fields, things get more complicated.

    youdao

  • 访问静态字段此类似。

    Accessing static fields is similar.

    youdao

  • 一阶段末尾静态字段初始化成默认

    At the end of this phase, static fields are initialized to their default values.

    youdao

  • 第二静态字段包括了PersonHome接口

    The second static field holds the class of the PersonHome interface.

    youdao

  • 使用任何其他静态字段一样使用字段

    Use the field as you would use any other static field.

    youdao

  • 比如一个方法需要读取某个尚未加载静态字段

    An example might be a method that reads the value of a static field for a class that hasn't yet been loaded.

    youdao

  • 支持同步静态字段

    There is no support for synchronized static fields.

    youdao

  • FxCop建议在声明静态字段位置其进行初始化

    The recommendation from FxCop is to initialize static fields where they are declared.

    youdao

  • 可以调用静态方法访问类的静态字段

    You can also call static methods on classes and access classes' static fields. Observe!

    youdao

  • 静态字段不能命名为m_XXX(自定义的命名规范)。

    Static fields should not be named m_XXX (Custom naming conventions).

    youdao

  • 如果异常是从静态字段初始值设定项引发的,也存在同样规则

    The same rules hold true if the exception is thrown from a static field initializer.

    youdao

  • 不是常数也不是只读字段静态字段不是线程安全的。

    Static fields that are neither constants nor read-only are not thread-safe.

    youdao

  • 第二静态字段包括了PersonLocalHome接口

    The second static field holds the Class of the PersonLocalHome interface.

    youdao

  • 结构可以拥有实例字段静态字段,或同时拥有两者

    A class or struct may have instance fields or static fields or both.

    youdao

  • 前接“statics名称表示给定静态字段数据结构

    Names proceeded by "statics" indicate data structures rooted under a static field of the given class.

    youdao

  • 因此依赖构造函数初始化线程相关静态字段

    Therefore, you should not rely on class constructors to initialize thread-relative static fields.

    youdao

  • 直到第一执行解析引用意味着没有地址可供从中加载静态字段

    Until the first execution, the reference is unresolved, which means there's no address to load that static field from.

    youdao

  • 程序演示静态字段初始值设定项如何在显式类型构造函数中的代码之前执行

    This program also demonstrates how static field initializers execute before the code inside an explicit type constructor.

    youdao

  • 实例化当前Transaction存储到线程静态字段

    When instantiated, it could store the current Transaction into a thread-static field.

    youdao

  • 线程静态字段具有一个很好的属性一旦托管线程消失不会将它们视为gc

    A nice property of thread-static fields is that once the managed thread goes away, they are no longer treated as GC roots.

    youdao

  • 正如前面看到的那样,静态字段初始值设定项代码隐式类型构造函数内部执行

    As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.

    youdao

  • 当然后续执行修补代码中获益从而可以直接地引用实例静态字段方法目标

    Subsequent executions, of course, will benefit from the result of patching the code so that the instance or static field, or method target, is more directly referenced.

    youdao

  • 由于决定使所有Leaf相同我们一个静态字段Leaf保留一个元素。

    Because this decision makes all Leaves identical, we'll keep a singleton for Leaf in a static field.

    youdao

  • 在内部Scope依赖线程静态字段存储提供给Scope构造函数实例Stack

    Internally, Scope relies on a thread-static field to store the Stack of instances supplied to Scope's constructor.

    youdao

  • 静态方法所做那样,只要防止程序员静态字段引用泛型类型情况很多

    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.

    youdao

  • 浅表副本创建原始对象具有相同类型实例然后复制原始对象的静态字段

    A shallow copy creates a new instance of the same type as the original object, and then copies the nonstatic fields of the original object.

    youdao

  • 幸运是,JSR - 14最新版本(1.3)宣布静态字段使用类型参数是不合法的。

    Luckily, the latest version of JSR-14 (1.3) outlaws the use of type parameters in static fields.

    youdao

  • 静态字段并不理想但是数值可能更改(例如一星期内天数)时,也可以使用这种方法。

    Static fields aren't ideal but are reasonably painless when the value of the constant isn't likely to changesuch as the values for the days of the week.

    youdao

  • 第二情况类型具有一个用于静态字段初始值设定项这种情况下,编译器会在后台添加类型构造函数。

    The second scenario is when a type has a initializer for a static field, in which case the compiler adds a type constructor behind the scenes.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定