After the metadata of a class is available, managed clients can create instances of the COM type and call its methods, just as if it were a.
当类的元数据变为可用时,托管客户端可以创建COM类型的实例并调用其方法,就像它是。
The code has two methods — XML and HTML — that each take closures. Each method can selectively call its closure based on the contents of the accept header, as in Listing 10.
该代码有两个方法,即xml和html,每个都使用闭包。
Case classes User and Status represent the basic types that Twitter sends back to its clients in response to an API call, complete with methods to construct into and extract from XML representations.
case类user和Status,表示Twitter在对API调用的响应中发回给客户机的基本类型,包括用于构造或提取XML的一些方法。
应用推荐