发明名称 |
Method, software and apparatus for referencing a method in object-based programming |
摘要 |
Method and apparatus for encapsulating a reference to a method in object-based programming systems and ensuring that the reference is safe are disclosed. The method of encapsulation provides for: a) defining an entity that defines the shape of the method to be referenced; b) obtaining a reference to a method; c) storing this reference in arbitrary data structures; d) passing the reference to code written by other parties; e) enabling invocation of the method by anyone holding the method reference; and f) enabling the holder of a method reference to determine the target object and method being referenced. These objectives are achieved in a strongly typed manner, making it possible for: a) developers to learn of type mismatch problems early (at compile-time) rather than late (at run-time); and b) development tools to present information to developers about the shape of components that use delegates. In addition, a model of event based programming is disclosed, wherein event-related code can be encapsulated in delegates.
|
申请公布号 |
US6381734(B1) |
申请公布日期 |
2002.04.30 |
申请号 |
US19980089619 |
申请日期 |
1998.06.03 |
申请人 |
MICROSOFT CORPORATION |
发明人 |
GOLDE PETER H.;HEJLSBERG ANDERS;ROYAL CHAD W.;SHARPE TRACY C.;TOUTONGHI MICHAEL J.;WAYT EDWARD H.;WILTAMUTH SCOTT M. |
分类号 |
G06F9/44;G06F9/42;(IPC1-7):G06F9/45 |
主分类号 |
G06F9/44 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|