基本的方法是,如果函数修改全局数据,则抛出一个错误消息。
The primitive way is by throwing an error message if the function modifies global data.
如果独占访问请求的资源没有被锁定,则这个方法锁定它。
If a request for exclusive access to the resource is unlocked, this method locks it.
如果输入的字符串不是一个数字,则该方法也将返回false。
This method also returns false if the input string is not a number at all.
对foo.just_this 的访问跳过了方法代码,而对 foo.something_else 的访问则运行了代码;
一旦有了一个数据对象,则这是创建其他对象的一种更为通用的方法。
Once you have one data object to start with, this is the common way to create others.
如果某个问题真的只是一次性的问题,则此方法是可以接受的。
If a problem is truly just a one-time event, this approach is acceptable.
正如我以上所说,教育别人最好的方法就是以身作则。
The best way to educate others is, as I said above, by your good example.
巴黎市在应付此类问题上则采取了更加循序渐进的方法。
Paris has taken a more gradual approach to tackling the problem.
发送文档则使用SOAPConnection对象的call方法。
To send the document, use the call method on a SOAPConnection object.
如果只是一些用例,则这样的方法会较简单。
Such a method should be simple if there are just a few examples.
分形理论则提供了一种发现秩序和结构的新方法。
More over, the Fractal theory provided another method to find order and configuration.
原则和模式则加入了一种自下而上的方法,从而平衡整个过程。
Principles and patterns add a bottom-up approach to balance the process.
第二则是你把声音录进电脑的方法。
Secondly is the means to record an audio file on your computer.
当然,这样做的最有效的方法是以身作则,言传身教。
属性存取则提供了撰写联结的简便方法。
Property access then provides a convenient way to write joins.
如果有给定值的本地化字符串,则该方法应返回该字符串。
If a localized string is available for the given value, the method should return it.
研究近期事件的历史学家则使用一种特殊的方法。
Historians who study recent events use a special type of source.
若项目方法正确则一定会开发出成功的产品。
The right approach to the project is bound to result in the development of a successful product.
如果要转换的类型支持属性,则重写此方法。
Override this method if the type you want to convert supports properties.
如果要转换的类型支持标准值,则重写此方法。
Override this method if the type you want to convert supports standard values.
如果重大更改是可以接受的,则一个可选的替代方法是使该类型成为密封类型。
If a breaking change is acceptable, an alternative is to make the type sealed.
如果重大更改是可以接受的,则一个可选的替代方法是使该类型成为密封类型。
If a breaking change is acceptable, an alternative is to make the type sealed.
应用推荐