Invention Grant
- Patent Title: Pattern types as constraints on generic type parameters
- Patent Title (中): 模式类型作为通用类型参数的约束
-
Application No.: US10924544Application Date: 2004-08-24
-
Publication No.: US07657874B2Publication Date: 2010-02-02
- Inventor: Sergey Lidin , Henricus Johannes Maria Meijer
- Applicant: Sergey Lidin , Henricus Johannes Maria Meijer
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Agency: Workman Nydegger
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G01R31/28

Abstract:
A system and method for constraining generic types is disclosed. In brief, the subject invention provides a pattern type for defining a set of one or more parameter constraints. Rather than being confined to a predetermined set of hard-coded constraints in an execution engine, a pattern type can be specified as an extensible constraint mechanism for generic type parameters. According to one aspect of the invention, the pattern type can manifest itself as a class including one or more properties and/or features. The shape of the pattern type can then be compared or matched to instantiated type parameters to determine constraint satisfaction.
Public/Granted literature
- US20060048024A1 Pattern types as constraints on generic type parameters Public/Granted day:2006-03-02
Information query