Skip to content

M_CommandLine_Core_ReflectionExtensions_GetSpecifications__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

ReflectionExtensions.GetSpecifications(T) Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static IEnumerable<T> GetSpecifications<T>(
	this Type type,
	Func<PropertyInfo, T> selector
)

VB

<ExtensionAttribute>
Public Shared Function GetSpecifications(Of T) ( 
	type As Type,
	selector As Func(Of PropertyInfo, T)
) As IEnumerable(Of T)

C++

public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ GetSpecifications(
	Type^ type, 
	Func<PropertyInfo^, T>^ selector
)

F#

[<ExtensionAttribute>]
static member GetSpecifications : 
        type : Type * 
        selector : Func<PropertyInfo, 'T> -> IEnumerable<'T> 

Parameters

 

type
Type: System.Type
selector
Type: System.Func(PropertyInfo, T)

Type Parameters

 

T

Return Value

Type: IEnumerable(T)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

ReflectionExtensions Class
CommandLine.Core Namespace

Clone this wiki locally