ArgumentGuardNotNullOrEmpty Method |
Throws if string is null or empty.
Namespace:
KSPDev.ProcessingUtils
Assembly:
KSPDev_Utils.2.3 (in KSPDev_Utils.2.3.dll) Version: 2.3 for KSP v1
Syntaxpublic static void NotNullOrEmpty(
string arg,
string argName,
string message = null,
Object context = null
)
Request Example
View SourceParameters
- 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.
ExceptionsException | Condition |
---|
ArgumentNullException | If the argument is null. |
ArgumentException | If the argument is an empty string. |
See Also