Download for Windows Premium
Publiciteit
static constructor

Vertaling van "static constructor" in Chinees

We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
静态构造函数
a static constructor is not allowed to have a member initializer list
静态构造函数不允许有成员初始值设定项列表
Listing 25 is an example of a class with a static constructor.
调用它。 一 个类只能有一个静态构造函数。
Use of the static constructor ensures that memory for the shared instance is not allocated until some portion of the application requires it.
使用静态构造函数可以确保在应用程序的某个部分需要该共享实例之前,不会为该实例分配内存。
A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)
无法对静态只读字段赋值(在静态构造函数或变量初始值设定项中除外)
Initialize all static fields in {0} when those fields are declared and remove the explicit static constructor.
声明 {0} 中的静态字段时应初始化所有这些字段,并移除显式静态构造函数。
a static constructor may not be a member template
静态构造函数不能是成员模板
a static constructor must have private accessibility; changing to private access
静态构造函数必须具有专用可访问性;更改为专用访问
a static constructor may not have parameters
静态构造函数不能带有参数
Do not declare explicit static constructors on value types. Initializing static data in explicit static constructors results in a value type that is not marked in metadata as 'beforefieldinit'. In this case, the static constructor is not always guaranteed to be called before instance members on the value type are called.
不要在值类型上声明显式静态构造函数。在显式静态构造函数中初始化静态数据将导致在元数据中未标记为"beforefieldinit"的值类型。在这种情况下,不能始终保证在调用该值类型上的实例成员前,调用该静态构造函数。
Non-private static constructors can cause unexpected behaviors, particularly when executed multiple times. This violation can occur if a type declares static data but has not explicitly declared a static constructor. In this case, some compilers will generate an externally visible static constructor.
非私有的静态构造函数可能导致意外的行为,尤其是在多次执行该构造函数的情况下。如果类型声明静态数据但没有显式声明静态构造函数,则可能发生此冲突。在这种情况下,某些编译器将生成外部可见的静态构造函数。
Cannot have private or static constructor.
不能具有私有或静态的构造函数。
A static constructor can not be a parameterized constructor.
所以,我们最好给父类A提供一个无参数的构造函数。
A static constructor is used to initialize any static data, or to perform a particular action that needs performed once only.
静态构造函数是实现对一个类进行初始化的方法成员。 它一般用于对静态数据的初始化。
Er zijn geen resultaten gevonden voor deze term.
Ga naar Premium voor toegang tot miljoenen vertaalvoorbeelden, onbeperkt woorden opslaan en leren, zonder advertenties.

Synoniemen voor static constructor in het Engels

Woord & uitdrukking van de dag
Afbeelding van de dag
witch: person who practices witchcraft
Ontdek het woord
Publiciteit

Resultaten: 13. Exact: 13. Verstreken tijd: 10 ms.