From the examples so far, you can see that an anonymous function is simply a function, without an name, that is evaluated in place and determines its context based on where it is defined.
到目前为止看到的例子中,匿名函数都只不过是一个没有名称的函数,它被就地求值,基于定义它的位置来决定它的上下文。
An anonymous class is a kind of syntactic shorthand that lets you instantiate a class implementing an abstract class or interface where you need it, without having to explicitly give it a class name.
匿名类是一种语法速写标记,使您能够在需要实现某个抽象类或者接口的地方创建一个类的实例,而不需要显式提供类的名称。
Anonymous - without name, usually used for a published work or quote with no known author.
匿名-没有名字,通常已经发表的作品,或与任何已知的作者引用使用。
Anonymous types allow you to define a class, then declare and initialize an object of that class, without giving the class a name.
匿名类型允许您定义一个类,然后在不给出类名称的情况下声明并初始化该类的对象。
Anonymous types allow you to define a class, then declare and initialize an object of that class, without giving the class a name.
匿名类型允许您定义一个类,然后在不给出类名称的情况下声明并初始化该类的对象。
应用推荐