Click or drag to resize

ShellCommandGetShellCommand Method (Assembly, String, IEqualityComparerString)

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
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: Type
The Type of the specified shell command, or if none could be found.
Exceptions
ExceptionCondition
ArgumentNullExceptionassembly or commandName is .
Remarks

This method uses OrdinalIgnoreCase to compare command names if commandNameComparer is .

See Also