...,然而为了与既有API相容及避免创造新的型态系统,Lambda语法的目标型态(Target type)必须是函式介面(Functional interface),权宜之计是透过定义通用函式介面,降低API设计者及使用者记忆型态与方法名称的负担。
基于8个网页-相关网页
相同的包装函式会完全公开五个介面。
例如,实作五个不同介面的单一com物件只会有一个包装函式。
For example, a single COM object that implements five distinct interfaces has only one wrapper.
当您将介面加入至物件或控制项时,您会为介面的每个方法建立截短的函式。
When you add an interface to your object or control, you create stubbed-out functions for each method in that interface.
应用推荐