Click or drag to resize

CommandLineGetArgumentT Method (IEnumerableString, String, T)

Gets a command line argument value.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static T GetArgument<T>(
	IEnumerable<string> arguments,
	string name,
	T defaultValue = null
)

Parameters

arguments
Type: System.Collections.GenericIEnumerableString
The arguments.
name
Type: SystemString
The argument name.
defaultValue (Optional)
Type: T
The default value if the argument is not found.

Type Parameters

T
The expected argument value type

Return Value

Type: T
The argument value.
See Also