KSPDev Client utilities
KSPDev Client utilities
KSPDev.ProcessingUtils
Preconditions Class
Preconditions Methods
ConfValueExists Method
HasSize Method
MakeContextError Method
MinElements Method
NotNull Method
NotNullOrEmpty Method
OneOf(T) Method
Preconditions
ConfValueExists Method
Throws if value form a config node is null or empty string.
Namespace:
KSPDev.ProcessingUtils
Assembly:
KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
Copy
public
static
void
ConfValueExists
(
Object
arg
,
string
path
,
Object
context
=
null
)
Request Example
View Source
Parameters
arg
Type:
System
Object
The value to check.
path
Type:
System
String
The path to the value or node.
context
(Optional)
Type:
System
Object
The optional "owner" object.
Exceptions
Exception
Condition
InvalidOperationException
If condition fails.
See Also
Reference
Preconditions Class
KSPDev.ProcessingUtils Namespace
Send comments on this topic to
igor.zavoychinskiy@gmail.com