ShellCommandGetShellCommand Method (Assembly, String, IEqualityComparerString) |
Gets the shell command with the specified command name, using the specified
IEqualityComparerT to compare command names.
Namespace:
Ookii.CommandLine
Assembly:
Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntaxpublic static Type GetShellCommand(
Assembly assembly,
string commandName,
IEqualityComparer<string> commandNameComparer
)
Public Shared Function GetShellCommand (
assembly As Assembly,
commandName As String,
commandNameComparer As IEqualityComparer(Of String)
) As Type
Dim assembly As [Assembly]
Dim commandName As String
Dim commandNameComparer As IEqualityComparer(Of String)
Dim returnValue As Type
returnValue = ShellCommand.GetShellCommand(assembly,
commandName, commandNameComparer)
public:
static Type^ GetShellCommand(
Assembly^ assembly,
String^ commandName,
IEqualityComparer<String^>^ commandNameComparer
)
Parameters
- assembly
- Type: System.ReflectionAssembly
The assembly whose types to search. - commandName
- Type: SystemString
The command name of the shell command. - commandNameComparer
- Type: System.Collections.GenericIEqualityComparerString
The IEqualityComparerT to use to compare command names, or to use the default case-insensitive comparer.
Return Value
Type:
TypeThe
Type of the specified shell command, or
if none could be found.
Exceptions
Remarks
This method uses OrdinalIgnoreCase to compare command names if commandNameComparer is .
See Also