KSPDev Client utilities
KSPDev Client utilities
KSPDev.ConfigUtils
AbstractOrdinaryValueTypeProto Class
AbstractOrdinaryValueTypeProto Methods
CanHandle Method
ParseFromString Method
SerializeToString Method
AbstractOrdinaryValueTypeProto
ParseFromString Method
Makes a value from the string representation.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.1.2 (in KSPDev_Utils.1.2.dll) Version: 1.2 for KSP v1.6+
Syntax
C#
Copy
public
abstract
Object
ParseFromString
(
string
value
,
Type
type
)
Request Example
View Source
Parameters
value
Type:
System
String
A string produced by
SerializeToString(Object)
.
type
Type:
System
Type
A type to convert the value into.
Return Value
Type:
Object
A new and initialized instance of the requested type.
Exceptions
Exception
Condition
ArgumentException
If value cannot be parsed.
See Also
Reference
AbstractOrdinaryValueTypeProto Class
KSPDev.ConfigUtils Namespace
Send comments on this topic to
igor.zavoychinskiy@gmail.com