Skip to content

M_CommandLine_Core_ReflectionExtensions_GetUsageData

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

ReflectionExtensions.GetUsageData Method

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

Syntax

C#

public static Maybe<Tuple<PropertyInfo, UsageAttribute>> GetUsageData(
	this Type type
)

VB

<ExtensionAttribute>
Public Shared Function GetUsageData ( 
	type As Type
) As Maybe(Of Tuple(Of PropertyInfo, UsageAttribute))

C++

public:
[ExtensionAttribute]
static Maybe<Tuple<PropertyInfo^, UsageAttribute^>^>^ GetUsageData(
	Type^ type
)

F#

[<ExtensionAttribute>]
static member GetUsageData : 
        type : Type -> Maybe<Tuple<PropertyInfo, UsageAttribute>> 

Parameters

 

type
Type: System.Type

Return Value

Type: Maybe(Tuple(PropertyInfo, UsageAttribute))

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