所以说,如果该静态方法不去操作一个静态成员,只在方法内部使用实例字段(instance field),不会引起安全性问题。但是,如果该静态方法操作了一个静态字段,则需要静态方法中采用互斥访问的方式进行安全处理。
基于524个网页-相关网页
也可以在类或方面上编写合约测试,在这些类或方面中可以在构造函数上定义测试,在实例字段上定义不变条件。
You can also write contract tests on classes or aspects, where you can define tests on constructors and invariant conditions on instance fields.
如果没有beforefieldinit,运行库就必须在某个精确时间运行类型构造函数,即,恰好在第一次访问该类型的静态或实例字段和方法之前。
Without beforefieldinit, the runtime must run the type constructor at a precise time-just before the first access to static or instance fields and methods of the type.
如果实例字段是从一个附属的XSD模式生成的,或者与其相关联,那么Lotus Forms Designer会通过检查模式决定并创建最适当的表示条目。
If the instance fields were generated from or are related to an enclosed XSD schema, Lotus Forms Designer examines the schema to determine and create the most appropriate presentation item.
应用推荐