Click or drag to resize

ArgumentGuardNotNullOrEmpty Method

Throws if string is null or empty.

Namespace:  KSPDev.ProcessingUtils
Assembly:  KSPDev_Utils.1.2 (in KSPDev_Utils.1.2.dll) Version: 1.2 for KSP v1.6+
Syntax
C#
public static void NotNullOrEmpty(
	string arg,
	string argName,
	string message = null,
	Object context = null
)
Request Example View Source

Parameters

arg
Type: SystemString
The argument value to check.
argName
Type: SystemString
The argument name.
message (Optional)
Type: SystemString
An optional message to present in the error.
context (Optional)
Type: SystemObject
The optional "owner" object.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf the argument is null.
ArgumentExceptionIf the argument is an empty string.
See Also