Skip to content

M_CommandLine_Core_NameExtensions_MatchName

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

NameExtensions.MatchName Method

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

Syntax

C#

public static bool MatchName(
	this string value,
	string shortName,
	string longName,
	StringComparer comparer
)

VB

<ExtensionAttribute>
Public Shared Function MatchName ( 
	value As String,
	shortName As String,
	longName As String,
	comparer As StringComparer
) As Boolean

C++

public:
[ExtensionAttribute]
static bool MatchName(
	String^ value, 
	String^ shortName, 
	String^ longName, 
	StringComparer^ comparer
)

F#

[<ExtensionAttribute>]
static member MatchName : 
        value : string * 
        shortName : string * 
        longName : string * 
        comparer : StringComparer -> bool 

Parameters

 

value
Type: System.String
shortName
Type: System.String
longName
Type: System.String
comparer
Type: System.StringComparer

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. 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

NameExtensions Class
CommandLine.Core Namespace

Clone this wiki locally