A static variable continues to exist and retains its most recent value.
静态变量可继续存在,并保留其最新值。
How do I run unit tests in VS based on different values of a static variable?
我该如何运作与基于静态变量的不同的值的单元测试?
The handler code in Listing 1 reads the message body and assigns it to a static variable.
清单1中的处理程序代码将读取消息主体,并将其赋值给静态变量。
A static variable continues to exist for the lifetime of the class or module that it is defined in.
只要在其中定义静态变数的类别或模组存在,静态变数就会继续存在。
Yes, unless it's final, but that change affects the single static variable that is seen by all the instances.
是的,除非它是最后的,但改变影响单一的静态变量被所有实例见。
Note that readdir is not thread-safe, because the returned structure is a static variable stored in the function library.
请注意,readdir不是线程安全的,因为所返回的结构是存储在函数库中的一个静态变量。
The side effect of the subprogram is produced by using public variable, or static variable, or pointer parameter in C Program.
在C语言子程序中由于使用了全局变量,或是使用了静态变量,或是使用了指针参数,从而产生副作用。
The static local variable is interesting because the common language runtime (CLR) does not support static variables inside a method.
静态局部变量之所以非常令人感兴趣,是因为公共语言运行库(CLR)不支持方法内的静态变量。
This error occurs if you apply code changes or invoke Edit and Continue with a debug command after renaming a global or static variable.
如果在重命名全局变量或静态变量后应用代码更改或用调试命令调用“编辑并继续”,则发生该错误。
Listing 4 presents the Scheme functions, which implement the same behavior, but the first with an argument and the second with a static variable.
清单4展示了Scheme函数,这些函数实现相同的行为,但是第一个函数有一个参数,第二个函数有一个静态值。
Therefore, you should perform the JNDI lookup once only, and then store the retrieved home object (for example in an instance or static variable).
因此,您应仅执行该JNDI查询一次,然后存储所检索到的主对象(例如,存储在实例中或静态变量中)。
Whenever the Web service is invoked, a message handler reads the body of the request and saves the whole body in the body_of_request static variable.
调用Web服务时,消息处理程序将读取请求的主体,并将整个主体保存在body _ of _ request静态变量中。
The setup_wrappers function only does this setup once; it then sets a static variable to indicate that it's already done, so future calls can return quickly.
setup_ wrappers函数仅进行一次设置;然后,它设置一个静态变量来表明已经完成,从而使未来的调用能够快速返回。
The DefaultDAO class stores an instance of itself (as a Singleton) in the static variable instance, allowing access to that instance through the getInstance() method.
DefaultDAO 类在静态变量instance 中存储了它自己的一个实例(存储为Singleton),并允许通过getInstance()方法访问该实例。
For the purpose of meeting high efficiency and premium efficiency motor tests, a set of static variable frequency power supply test system was researched and designed.
从满足高效和超高效电机的效率测试出发,研究和设计了一套基于静止变频电源的电机效率测试系统。
Embedded statements are not allowed in constant expressions, such as the value of an enumeration constant, the width of a bit-field, or the initial value of a static variable.
在常量表达式,比如枚举型常量、位域的宽度或是静态变量的初始值,是不允许使用在这种声明中的。
In the past, you may have been tempted to take advantage of the multithreaded nature of JMS Connection objects and cache them in a static variable of an EJB component or servlet.
在过去,您也许曾经试图利用JMSConnection对象的多线程本性,并将它们缓冲到EJB组件或者servlet的静态变量中。
The guide recommends you use a static final variable to create the object once at application startup and then get this object when needed.
该指南建议您在应用程序启动时使用一个静态最终变量来创建这个对象,然后根据需要获取该对象。
Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
G: This option generates the lookup table as a static global variable rather than hiding it by generating it inside the lookup function (the default behavior).
G:该选项将生成查找表并将其作为静态全局变量,而不是在查找函数内生成以隐藏该表(默认行为)。
New to PHP V5.3 is the ability to have the name of the class when specified be a variable when making a static call.
PHPV5.3的一个新特性就是在进行静态调用时,能够使指定的类名成为一个变量。
The part that involves policy and rules is deciding whether or not the controls can be static or whether some of the characteristics change over time or some other business variable.
涉及策略和规则的部分是决定控制是静态的,还是某些特征会随时间或其他业务变量而变动。
This field will hold the value of the static local variable I in GetMessage.
此字段将在GetMessage中保留静态局部变量i的值。
Because we'd like our Lists to be generic in the type of element they contain, we'd like our static factory method to take an argument of type variable t and return an instance of List.
因为我们希望List成为其所包含的元素类型的泛型,所以希望静态factory方法带有类型变量t这一参数并返回List的实例。
When the zombie finalizer is called, it takes the object being finalized - referenced by this - and stores it in the static zombie variable.
在调用zombie终结器时,它获取被终结的对象(由this引用)并将它存储在静态zombie变量中。
The static modifier that precedes $onlyOne ties the variable to the class itself.
$onlyOne 之前的静态修饰符将此变量关系到类本身。
I've made the number a member variable within the Classifier2 class, which allows me to avoid passing it around as a parameter to a bunch of static methods.
我把数字变成是Classifier 2类中的成员变量,这将允许我避免将其作为参数传递给一大堆静态方法。
A global (static global) instance of ExceptionHandler should be defined prior to the definition of the actual global (static global) variable in question.
应该在定义有问题的实际全局(静态全局)变量之前定义ExceptionHandler的全局(静态全局)实例。
A global (static global) instance of ExceptionHandler should be defined prior to the definition of the actual global (static global) variable in question.
应该在定义有问题的实际全局(静态全局)变量之前定义ExceptionHandler的全局(静态全局)实例。
应用推荐