Using closures designed primarily to private methods and variables.
使用闭包主要是为了设计私有的方法和变量。
The source code also includes other public and private methods and classes.
源代码还提供了其他公共和私有方法以及类。
This code USES the private methods to retrieve an object from the pool and call the provided delegate.
该代码使用私有方法从池中检索对象,并且调用所提供的委托。
I'll also address some other sticky design questions about TDD, such as if and when to test private methods.
我还将解答其他某些棘手的TDD设计问题,例如是否测试及何时测试私有方法。
Sometimes the code is very obviously unreachable (uncalled private methods, unread local variables, and so forth).
有时候,这些代码是明显不可达的(未调用的私有方法以及未读入的本地变量,等等)。
In particular, being able to change a few private methods to public would have made this code a lot easier to write.
特别是将一些私有方法变成公有方法能够使这个代码编写起来更容易。
Keep in mind also that using reflection to invoke private methods does introduce a level of brittleness to the resulting tests.
还请记住,使用反射调用private方法会对生成的结果带来一定程度的脆弱性。
Had they been implemented, it would have been technically possible to copy the noncopyable class within its own private methods!
如果它们已实现,从技术上讲,可以在noncopyable类自己的私有方法内复制该类!
If you think Guice's decision to access private methods seems intrusive, wait until you see Listing 10, in which FrogMan USES field injection.
如果您认为Guice访问私有方法不是很好,可以参见清单10,其中FrogMan使用了字段注入。
NET framework, there are plenty of internals that have a knack for becoming externally visible, even if that code lives inside private methods.
NET框架,有,有成为外部可见的内部大量的诀窍,即使该代码生活里面的私有方法。
One of the most useful of these is the PrivateAccessor class, which makes testing private methods a snap regardless of your testing framework of choice.
其中最有用的一个就是privateaccessor类,它把对private方法的测试变成小菜一碟,无论选择的测试框架是什么。
The populate method is much shorter now, and it reads like an outline of the tasks it needs to perform, with the task implementation residing in private methods.
populate方法现在短多了,看起来像是它需要执行的任务的大纲,任务的实现都放在私有方法中。
The side effect of this discipline leads to public methods that mainly consist of calls to a large number of very small private methods, each of which do only one thing.
这种思想的好处是调用的公用方法是由许多个短小的、每个只完成一种功能的大量的私有函数组成的。
The features you use in the definitions of your private classes, in the definitions of private methods on public classes, and in local variables do not have to follow the CLS rules.
在私用类别的定义中、在公用类别之私用方法上的定义中,以及在区域变数中使用的功能不用遵循CLS规则。
There is a convention in Objective-C to provide private methods on a class by defining a category within the implementation file; this could be a relatively simple addition by using chained templates.
在Objective - C中有一个惯例通过在实现文件中定义一个类别为一个类提供了私有的方法;通过使用链式模版这将是相关简单的附加物。
It USES all the other (private) methods to perform work, and it reads like an outline of the steps performed.
它使用所有其他(私有)方法执行工作,看起来像是执行的步骤的大纲。
Some private companies have tried growing algae in vats or through other methods on land.
一些私营公司曾尝试在大桶中或者在陆上通过其他的一些的方法种植藻类。
It is legal to get method infos of methods that are not accessible; metadata is always public even if it describes private details.
获得方法的方法信息是合法的;元数据总是公共的,即使它描述了私有详情。
Trust is also established from a technology perspective using cryptographic methods, including encryption keys, private or public keys, digital signatures, or protocols.
从技术的角度来看,还可以使用各种加密方法来建立信任,包括加密密钥、私钥或公钥、数字签名,或者协议。
Implement standard OOP features like private constructors, abstract methods and classes.
实现标准的面向对象功能,比如:私有构造函数、抽象方法和抽象类等。
Wenzhou was one of the first cities to develop methods to work around the financial sector's aversion to private enterprise.
温州是第一个开发出消除金融系统对私人企业的负面影响的城市。
With PGP and other public-key encryption methods, there's no way to deduce someone's private key from the public key.
对于PGP和其他公钥加密方法,不存在从公钥推断某人私钥的方法。
Private functions, subs, and methods are not exposed through the Web services interface.
私有函数、子元素和方法不会通过Web服务接口公开。
Extension Methods - Sometimes you want to take a private helper method and reuse it elsewhere.
扩展方法—有时候你会想要在任何地方都能重用某个私有的helper方法。
The argument to the constructor is the fully qualified URL of the metadata service being exposed, which we construct using methods in the private class HostDescriptor.
该构造函数的参数是正在被显示的元数据服务的全限定url,我们使用私有类HostDescriptor中的方法构造了它。
There are two private helper methods that are not available to Web service clients.
有两个私有helper方法对于Web服务客户机是不可用的。
Properties automatically have private backing fields with get methods synthesized.
属性自动拥有了私有的、合成了get方法的域。
If Acegi finds that the user is authorized to access the beans, it invokes the getter methods, fetches public and private data, and provides the data to JSF.
如果Acegi发现用户得到授权可以访问bean,就会调用getter方法,获取公共和私有数据,并将数据提供给JSF。
A subtle but important difference between auth and list is that list is a closure, whereas auth is a private method. (Closures use an equals sign in the definition; methods use parentheses.)
auth和list之间微妙但重要的一点区别是list是一个闭包,而auth是一个私有方法(闭包在定义中使用等号;方法使用圆括号)。
A subtle but important difference between auth and list is that list is a closure, whereas auth is a private method. (Closures use an equals sign in the definition; methods use parentheses.)
auth和list之间微妙但重要的一点区别是list是一个闭包,而auth是一个私有方法(闭包在定义中使用等号;方法使用圆括号)。
应用推荐