按照定义,不能从密封类型继承,意味着不能调用密封类型上受保护的方法。
By definition, you cannot inherit from a sealed type, which means that protected methods on sealed types cannot be called.
这种方法使得测试受保护的方法非常容易,因为测试案例类现在可以扩展包含受保护方法的类了。
This approach makes testing protected methods much easier because the test case class can now extend the class that contains the protected methods.
为了提供一致的开发人员体验,公共公开的元素(如公共类和受保护的方法)必须遵守这些准则。
To provide a consistent developer experience, these guidelines are required for publicly exposed elements such as public classes and protected methods.
真正代表一个 .aspx活动页面的类是从Page 派生的一个类的实例;因此,它能够调入受保护的方法。
The actual class that represents an .aspx page in action is an instance of a class that derives from Page; hence, it can call into protected methods.
现在,项阵列可以是private的,因为子类使用受保护的add方法将配置项添加到列表中。
Now, the items array can be private because the descendant classes use the protected add method to add configuration items to the list.
此方法定义受保护系统的各个组件,并将这些组件映射到能够对其进行访问的用户组。
This methodology defines various components of the protected system and maps those components to the groups of users who can access them.
将字段声明为受保护时,子类中的方法就有可能直接访问它们,这样就可能有效地增加类层次结构中的耦合。
When fields are declared protected, there is the possibility that methods in subclasses will directly access them, effectively increasing the coupling within a class hierarchy.
我的经验是应该总是使读写方法受保护,所以只有子类可以访问其属性。
My experience is that you should always strive to make accessors protected, so only subclasses can access the attributes.
作为一种保护极易受侵蚀的土壤和在土壤中储存碳的方法,种草在1990年代很流行。
Planting grass became popular in the 1990s as a way to save highly erodible soils and store carbon in the soil.
HATSV6.0.2还有一种方法可以让您把光标放在受保护的文本上。
HATS V6.0.2 features another way to enable the cursor to be placed on protected text.
这种方法的一个有趣的副作用是允许通过闭包访问类的私有成员和受保护成员,这有利于对类执行单元测试。
One interesting side effect of this approach is that it allows us to access private and protected members of a class via a closure, which can be handy for unit testing classes.
这很重要,因为它暴露了简单的、仅基于密码的方法的重大缺陷 ——只要成功登录,就可以访问所有受保护的操作。
This is important because it illustrates one of the key flaws of this simple, password-only approach—namely that, once authenticated, a user can access any or all of the protected actions.
此类包含三个受保护的属性和6个方法,如清单1所示。
This class contains three protected attributes and six methods, as shown in Listing 1.
如果某些action类提供一个特定的实现,则将此方法声明为受保护,并给它一个默认实现。
If some Action classes will provide a case-specific implementation, declare the method protected and give it a default implementation.
第一个是可见性标记(visibility marker),可以将字段、方法和类标记为公共的、受保护的、私有的或默认的可见性。
The first is a visibility marker that marks fields, methods, and classes for either public, protected, public, or default visibility.
特定关系被委托给受保护类的fulfills方法。
Special relationships are delegated to the fulfills method of the class being protected.
现在您的测试类有一个叫做account的受保护的字段,测试方法对其进行了初始化。
Your test class now has a protected field called account, and the test method initializes it.
卫报自瑞典报道,海盗湾案的四位被告被认为涉嫌“协助他人获得受版权保护的内容”并被斯德哥尔摩地方法院判处一年监禁,赔偿金被定为3千万瑞典克朗(362万美元)。
The four defendants in the Pirate Bay trial in Sweden have been found guilty of "'assisting in making copyright content available" and sentenced to a year in jail by a district court in Stockholm.
由于模板方法模式是受保护的,而不是公共方法,调用者被分离从类实现的细节中。
As the template methods are protected, rather than public, callers are spared the details of the class's implementation.
尽管这种方法仍然会存在为受保护的寄生元件,但能够以可接受的成本提供非常好的性能。
While this method allows some unguarded stray elements to remain, it provides very good performance at an acceptable cost.
坦率地说,简单的方法就是规定载有这些受保护信息的记录保密时间短于100年(或125年)。
One approach is as straightforward as limiting protected health information to those records that are less than 100 (or 125) years old.
留设保护煤柱是防止建筑物受采动损坏的最常用方法。
It is the most common way to remain coal safety pillar for protecting surface buildings from mining damage.
微通道装置和催化剂中受保护的合金表面,氧化铝负载的催化剂,催化剂中间体,形成催化剂和微通道装置的方法。
Micro-channel device, protected alloy surface in catalyst, alumina supported catalyst, catalyst intermediate, and method for forming catalyst and micro-channel device.
为此,您可以在包含该事件的基类中创建一个受保护的调用方法。
To do this, you can create a protected invoking method in the base class that wraps the event.
无法从一般编译程序码存取的私用、受保护或内部的方法,可利用反映从部份信任程序码存取。
A private, protected, or internal method that would not be accessible from normal compiled code is accessed from partially trusted code by using reflection.
方法制备大、小鼠胃溃疡模型,多次灌胃给予受试动物wsa,考查其对各种胃溃疡动物模型的保护作用。
Methods Designing different animal gastric ulcer models to find out pharmacological effect of WSA Capsules by oral administration on gastric ulcer.
这就给上传编译后的应用程序提供了简单的方法,并且因为上传的只是编译后的文件,所以代码是受保护的。
This provides an easy way to deploy (upload to a server) compiled applications, and because only compiled files are deployed, the source code is protected.
这就给上传编译后的应用程序提供了简单的方法,并且因为上传的只是编译后的文件,所以代码是受保护的。
This provides an easy way to deploy (upload to a server) compiled applications, and because only compiled files are deployed, the source code is protected.
应用推荐