不像我开始描述的两个定时器类,System . Threading . Timer有四个重载构造函数,就像下面这样。
Unlike the previous two timer classes that I have just covered, System.Threading.Timer has four overloaded constructors. The following shows what they look like.
构造函数方法使用标准化的方法来确保重载值中不包含XML解析器所使用的符号。
The constructor method uses the normalize method to ensure that the override value strings do not contain symbols used by XML parser.
也有这方面的一个构造函数的字段名以及重载版本。
There is also an overloaded version of this constructor that takes the field name as well.
很多开发者编写第一个构造函数,然后将代码复制粘贴到其它构造函数中去,以满足在类的接口上定义的多个重载。
Many developers write the first constructor and then copy and paste the code into other constructors, to satisfy the multiple overrides defined in the class interface.
这一特定的构造函数重载使调用方可以指定是否允许自动转换。
This particular constructor overload enables the caller to specify whether auto-converting is allowed.
当设计环境创建一个组件或控件的实例时,它不会尝试为使用参数的构造函数重载提供任何参数。
When the design environment creates an instance of your component or control, it does not attempt to provide any parameters to constructor overloads that take parameters.
当设计环境创建一个组件或控件的实例时,它不会尝试为使用参数的构造函数重载提供任何参数。
When the design environment creates an instance of your component or control, it does not attempt to provide any parameters to constructor overloads that take parameters.
应用推荐