You will now create a private variable for the process.
现在,您将为流程创建一个私有变量。
Add a private variable filename of type String to this class.
将私有变量filename添加到该类中,数据类型为String。
This code defines the private variable (nothing is visible unless annotated as Shared), and then the initialization logic.
这段代码定义私有变量(除非注释为shared的,否则所有元素都是不可见的),然后定义初始化逻辑。
The string is saved in a private variable so we have access to the string when the enumerator calls the matches() method to create the result set.
这个字符串被保存在私有变量中,这样当枚举器调用matches()方法创建结果集的时候就可以访问这个字符串。
Demands placed on the assembly or non-private variable level will not produce a compiler warning.
针对程序集或非私有变量级别的要求将不会产生编译器警告。
Demands placed on the assembly or non-private variable level will not produce a compiler warning.
针对程序集或非私有变量级别的要求将不会产生编译器警告。
应用推荐