Qit


ReflectionPatterns Module

Active patterns for reflection

Active patterns

Active pattern Description

(|Attribute|_|) minfo

Full Usage: (|Attribute|_|) minfo

Parameters:
Returns: 'a option
Modifiers: inline
Type parameters: 'a

Active pattern for extracting a specific attribute from a MemberInfo.

minfo : MemberInfo
Returns: 'a option

(|DeclaringType|) minfo

Full Usage: (|DeclaringType|) minfo

Parameters:
Returns: Type

Active pattern for extracting the declaring type of a MemberInfo.

minfo : MemberInfo
Returns: Type

(|FSharpFuncType|_|) t

Full Usage: (|FSharpFuncType|_|) t

Parameters:
Returns: (Type list * Type) option

Active pattern for decomposing an F# function type into its argument types and return type. If the input type is a function, it will match out (args : Type list * returnType : Type).

t : Type
Returns: (Type list * Type) option

(|Implements|_|) t

Full Usage: (|Implements|_|) t

Parameters:
Returns: 'a option

Active pattern for checking if a Type implements a specific interface or inherits from a specific class.

t : Type
Returns: 'a option