PARTIAL METHODS
    2.
    发明申请
    PARTIAL METHODS 有权
    部分方法

    公开(公告)号:US20080196014A1

    公开(公告)日:2008-08-14

    申请号:US11674333

    申请日:2007-02-13

    IPC分类号: G06F9/45

    CPC分类号: G06F8/00

    摘要: Partial methods enable separation of method declaration and/or calls from method implementation. A partial method specifies a signature of a join or hook point in a class. Calls to a partial method specify a join or hook point in code that can optionally be linked with an actual method implementation of the same signature. Separate method implementations or other code related to a partial method are injected into a single program prior to execution. Unimplemented partial methods are treated as no operation instructions or otherwise ignored.

    摘要翻译: 部分方法使得方法实现能够分离方法声明和/或调用。 部分方法指定类中的连接或钩点的签名。 调用部分方法指定可以可选地与相同签名的实际方法实现链接的代码中的连接或挂接点。 在执行之前,将单独的方法实现或与部分方法相关的其他代码注入到单个程序中。 未实现的部分方法被视为无操作指令或以其他方式忽略。

    Partial methods
    4.
    发明授权
    Partial methods 有权
    部分方法

    公开(公告)号:US07890939B2

    公开(公告)日:2011-02-15

    申请号:US11674333

    申请日:2007-02-13

    IPC分类号: G06F9/45

    CPC分类号: G06F8/00

    摘要: Partial methods enable separation of method declaration and/or calls from method implementation. A partial method specifies a signature of a join or hook point in a class. Calls to a partial method specify a join or hook point in code that can optionally be linked with an actual method implementation of the same signature. Separate method implementations or other code related to a partial method are injected into a single program prior to execution. Unimplemented partial methods are treated as no operation instructions or otherwise ignored.

    摘要翻译: 部分方法使得方法实现能够分离方法声明和/或调用。 部分方法指定类中的连接或钩点的签名。 调用部分方法指定可以可选地与相同签名的实际方法实现链接的代码中的连接或挂接点。 在执行之前,将单独的方法实现或与部分方法相关的其他代码注入到单个程序中。 未实现的部分方法被视为无操作指令或以其他方式忽略。

    Generic interface for deep embedding of expression trees in programming languages
    5.
    发明授权
    Generic interface for deep embedding of expression trees in programming languages 有权
    用于在编程语言中深入嵌入表达式树的通用接口

    公开(公告)号:US07860823B2

    公开(公告)日:2010-12-28

    申请号:US11464874

    申请日:2006-08-16

    IPC分类号: G06F7/00

    CPC分类号: G06F17/3041 G06F8/41

    摘要: The claimed subject matter provides a system and/or a method that facilitates querying data utilizing an explicit representation of an embedded language. An IEnumberable component can receive a data operation that can be employed on a collection of data utilizing at least one of an IEnumerable interface and an IEnumerable interface. A mirror component can provide a generic interface to query the collection of data by representing the collection of data as an expression tree utilizing at least one function that mirrors the at least one IEnumerable interface and the IEnumerable interface.

    摘要翻译: 所要求保护的主题提供了利用嵌入式语言的显式表示来促进查询数据的系统和/或方法。 IEnumberable组件可以使用IEnumerable接口和IEnumerable 接口中的至少一个来接收可用于数据集合的数据操作。 镜像组件可以提供通用接口来通过使用至少一个映射至少一个IEnumerable接口和IEnumerable接口的功能来表示数据的集合来查询数据的集合。

    A GENERIC INTERFACE FOR DEEP EMBEDDING OF EXPRESSION TREES IN PROGRAMMING LANGUAGES
    6.
    发明申请
    A GENERIC INTERFACE FOR DEEP EMBEDDING OF EXPRESSION TREES IN PROGRAMMING LANGUAGES 有权
    编程语言深度嵌入表达式的一般界面

    公开(公告)号:US20070271233A1

    公开(公告)日:2007-11-22

    申请号:US11464874

    申请日:2006-08-16

    IPC分类号: G06F17/30

    CPC分类号: G06F17/3041 G06F8/41

    摘要: The claimed subject matter provides a system and/or a method that facilitates querying data utilizing an explicit representation of an embedded language. An IEnumberable component can receive a data operation that can be employed on a collection of data utilizing at least one of an IEnumerable interface and an IEnumerable interface. A mirror component can provide a generic interface to query the collection of data by representing the collection of data as an expression tree utilizing at least one function that mirrors the at least one IEnumerable interface and the IEnumerable interface.

    摘要翻译: 所要求保护的主题提供了利用嵌入式语言的显式表示来促进查询数据的系统和/或方法。 IEnumberable组件可以使用IEnumerable接口和IEnumerable 接口中的至少一个来接收可用于数据集合的数据操作。 镜像组件可以提供通用接口来通过使用至少一个映射至少一个IEnumerable接口和IEnumerable接口的功能来表示数据的集合来查询数据的集合。

    Extending expression-based syntax for creating object instances
    9.
    发明授权
    Extending expression-based syntax for creating object instances 有权
    扩展用于创建对象实例的基于表达式的语法

    公开(公告)号:US07818719B2

    公开(公告)日:2010-10-19

    申请号:US11193584

    申请日:2005-07-29

    IPC分类号: G06F9/44 G06F9/45

    CPC分类号: G06F9/4488

    摘要: Syntax for creating object instances utilizing expressions instead of statements. A syntax component facilitates extension of conventional object-creation-expression syntax. An initializer component provides for initialization of a newly-created entity via object and collection initializers. The initializer component provides initialization of the newly-created entity utilizing an object initializer where the object initializer specifies values for one or more fields or properties of the newly-created entity which is an object, and consists of a sequence of member initializers enclosed by tokens and separated by commas. The initializer component can also provides initialization of the newly-created entity utilizing a collection initializer when the underlying object implements a certain interface or implements a certain pattern. An overloading constructor can be called as part of the initialization process. In another aspect, code inferencing is disclosed whereby given a type, the corresponding code can be inferred by the compiler and inserted for compiling by a compiler.

    摘要翻译: 使用表达式而不是语句创建对象实例的语法。 语法组件有助于扩展常规的对象创建表达式语法。 初始化器组件通过对象和集合初始化器提供新创建的实体的初始化。 初始化器组件使用对象初始化器来提供新创建的实体的初始化,其中对象初始化器指定作为对象的新创建的实体的一个或多个字段或属性的值,并且包括由令牌包围的成员初始化器序列 并用逗号分隔。 初始化器组件还可以在底层对象实现特定接口或实现某种模式时,利用集合初始化器来提供新创建的实体的初始化。 可以调用重载构造函数作为初始化过程的一部分。 在另一方面,公开了代码推论,由此给定类型,相应的代码可以由编译器推断并插入以供编译器编译。

    Architecture that extends types using extension methods
    10.
    发明授权
    Architecture that extends types using extension methods 有权
    使用扩展方法扩展类型的体系结构

    公开(公告)号:US08370801B2

    公开(公告)日:2013-02-05

    申请号:US12728939

    申请日:2010-03-22

    IPC分类号: G06F9/44

    CPC分类号: G06F8/315

    摘要: Architecture that extends existing types including constructed and sealed types using extension methods. Extension methods are static methods that can be invoked using instance method syntax. Extension methods are declared by specifying the keyword “this” as a modifier on the first parameter of the methods. Extension methods have all the capabilities of regular static methods. In addition, once imported, extension methods can be invoked using instance method syntax. Also disclosed are rules for importing extension methods, and extension method invocations. Extension methods are imported through using-namespace-directives. In addition to importing the types contained in a namespace, a using-namespace-directive imports all extension methods in all static classes in the namespace. In effect, imported extension methods appear as additional methods on the types that are given by their first parameter and have lower precedence than regular instance methods.

    摘要翻译: 使用扩展方法扩展现有类型(包括构造和密封类型)的体系结构。 扩展方法是可以使用实例方法语法调用的静态方法。 通过将关键字this指定为方法的第一个参数的修饰符来声明扩展方法。 扩展方法具有常规静态方法的所有功能。 另外,一旦导入,可以使用实例方法语法来调用扩展方法。 还公开了导入扩展方法和扩展方法调用的规则。 扩展方法通过using-namespace-directives导入。 除了导入命名空间中包含的类型之外,using-namespace-directive会在命名空间中的所有静态类中导入所有扩展方法。 实际上,导入的扩展方法在其第一个参数给出的类型上显示为附加方法,并且具有比常规实例方法更低的优先级。