• A static constructor cannot be called directly.

    无法直接调用静态构造函数

    youdao

  • The user has no control over when the static constructor is called.

    用户不能控制何时调用静态构造函数。

    youdao

  • To fix the second kind, add a private static constructor to your type.

    修复二类冲突,请的类型中添加私有静态构造函数

    youdao

  • A static constructor does not take access modifiers or have parameters.

    静态建构函式并不使用存取修饰词没有参数。

    youdao

  • Always provide a static constructor when providing static member variables.

    提供静态成员变量时,总是提供一个静态构造函数

    youdao

  • The user has no control on when the static constructor is executed in the program.

    使用者无法控制程序静态建构函执行时间

    youdao

  • A static constructor, also known as a class constructor, is used to initialize a type.

    静态构造函数(称为构造函数)用于初始化类型。

    youdao

  • If a static constructor is not private, it can be called by code other than the system.

    如果静态构造函数不是私有,则系统以外代码可以调用

    youdao

  • In this article, you've seen some performance consequences when a class has a static constructor.

    本文中,已经看到了在具有一个静态构造函数所导致的性能结果

    youdao

  • A managed class cannot have a static constructor that also has a member initialization list.

    托管不能本身成员初始化列表的静态构造函数。

    youdao

  • The rule description tells you that an explicit static constructor results in code that performs worse.

    规则说明告诉静态构造函数会导致代码性能变差

    youdao

  • A static constructor is modeled by setting the static property of the corresponding UML operation.

    通过相应UML操作设置static属性来对static constructor建模

    youdao

  • When you have more complicated logic to initialize static member variables, create a static constructor.

    复杂逻辑初始化静态成员变量时请创建静态构造函数

    youdao

  • The programming language compiler added a default static constructor to your type and did not make it private.

    编程语言编译器类型添加默认静态构造函数,但设置为私有。

    youdao

  • As with instance initialization, you can use the initializer syntax as an alternative to the static constructor.

    实例初始一样可以使用初始化器语法作为静态构造函数变体

    youdao

  • If your class contains static fields, provide a static constructor that initializes them when the class is loaded.

    如果类别包含静态栏位请提供类别载入时会将其初始化的静态建构函式

    youdao

  • The system calls the static constructor before the first instance of the type is created or any static members are referenced.

    系统创建第一个类型实例引用任何静态成员之前调用静态构造函数

    youdao

  • A static constructor is used to initialize any static data, or to perform a particular action that needs to be performed once only.

    初始化任何静态数据执行特定操作需要执行一次使用静态构造函数。

    youdao

  • If you want your derived class to set this property, you should do so within the static constructor or in other initialization routines.

    如果希望派生设置属性应该静态构造函数其他初始化完成此工作。

    youdao

  • A static constructor is a special function that executes before any other methods, variables, or properties defined in that class are accessed.

    静态构造函数一个特殊方法,它在任何其它方法、变量或者属性被访问之前执行

    youdao

  • A static constructor is called automatically to initialize the class before the first instance is created or any static members are referenced.

    建立第一执行个体参考任何静态成员之前,就会自动呼叫静态建构函初始类别

    youdao

  • The Synthesizer is multi-threaded, therefore they must only be one instance in the program, so make a static one somewhere with a static constructor.

    频率合成器多线程的因此他们必须程序一个实例使静态静态构造函数的地方

    youdao

  • 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.

    静态成员第一受到存取以及静态建构函式(如果)受到呼叫之前进行初始化。

    youdao

  • If your software design requires an explicit call to a static constructor, it is likely that the design contains serious flaws and should be reviewed.

    如果软件设计要求式调用静态构造函数可能设计存在严重缺陷检查设计。

    youdao

  • First, the program did not hit the catch clause for an exception of type ApplicationException, even though that's the type of exception thrown from the static constructor.

    第一程序不会类型ApplicationException异常寻找catch即使这种类型的异常是从静态构造函数引发也如此。

    youdao

  • However, it is guaranteed to be loaded and to have its fields initialized and its static constructor called before the class is referenced for the first time in your program.

    然而类别能保证一定载入的程序第一参考类别,先其中的栏位初始化其中的静态建构函式受到呼叫

    youdao

  • A link demand performed on a static class constructor does not protect the constructor because static constructors are called by the system, outside the application's code execution path.

    静态构造函数执行链接要求不会保护构造函数,因为静态构造函数系统调用的,它们并不包括应用程序代码执行路径中

    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

  • The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.

    一种说法就是永远都不要为那些其构造函数析构函数可能抛出异常定义全局(静态全局)实例

    youdao

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

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

    youdao

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

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

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