• 访问静态字段此类似。

    Accessing static fields is similar.

    youdao

  • 一旦解析,就会一种线程安全的方式修改原始代码位置以便直接访问静态字段地址因为此时已获知该地址。

    Once the class has been resolved, the original code location is modified in a thread-safe way to access the static field's address directly because that address is then known.

    youdao

  • 这种做法并不常见因为需要开发人员创建用于访问实例(静态)方法字段对象的实例。

    This is unusual because it requires a developer to create an instance of an object just to access non-instance (static) methods and fields!

    youdao

  • 标志使得运行库能够任何时候执行类型构造函数方法只要方法在第一访问该类型的静态字段之前执行即可。

    This flag allows the runtime to execute the type constructor method at any time it chooses, as long as the method executes before the first access to a static field for the type.

    youdao

  • 如果需要访问对象字段方法设置为静态调用加速15%20%。

    If you don't need to access an object's fields, make your method static. Invocations will be about 15%-20% faster.

    youdao

  • 如果没有beforefieldinit运行库就必须某个精确时间运行类型构造函数,即,恰好在第一访问类型静态实例字段方法之前

    Without beforefieldinit, the runtime must run the type constructor at a precise time-just before the first access to static or instance fields and methods of the type.

    youdao

  • 内部在外部类中任何需要访问mValue字段调用doStuff方法地方调用这些静态方法

    The inner class code calls these static methods whenever it needs to access the mValue field or invoke the doStuff method in the outer class.

    youdao

  • 如果必要访问对象字段那么使方法成为静态方法。

    If you don't need to access an object's fields, make your method static.

    youdao

  • 支持导入常量这个特性使静态方法字段能够导入这样访问静态成员时就不必使用完全限定

    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.

    youdao

  • 如果正在开发应用程序,因此包含静态字段类型具有完全访问权限可以安全地禁止显示规则发出的警告。

    It is safe to suppress a warning from this rule if you are developing an application and therefore have full control over access to the type that contains the static field.

    youdao

  • 卸载过程中执行终止方法时,可能需要访问另一个静态字段引用并且终止方法的对象

    While executing in your finalization method during domain unloading, you might want to access another object that is referenced by a static field and has a finalization method.

    youdao

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

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

    youdao

  • 访问程序集每一应用程序必须具有静态数据单独副本避免跨域边界引用静态字段中的对象

    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.

    youdao

  • 如果不同上下文中访问指示静态字段,则该字段包含不同的

    If the indicated static field is accessed on a different context, it will contain a different value.

    youdao

  • 如果不同上下文中访问指示静态字段,则该字段包含不同的

    If the indicated static field is accessed on a different context, it will contain a different value.

    youdao

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

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

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