ConfigAccessorWriteFieldsIntoNode Method |
Writes values of the annotated persistent fields into a config node.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic static void WriteFieldsIntoNode(
ConfigNode node,
Type type,
Object instance,
string group = ""
)
Request Example
View SourceParameters
- node
- Type: (Default Namespace)ConfigNode
A config node to write data into. - type
- Type: SystemType
A type to write fields for. - instance
- Type: SystemObject
An instance of type type. If it's null then
only static fields will be written. - group (Optional)
- Type: SystemString
A group tag (see BasePersistentFieldAttribute).
RemarksAll persitent values are added into the node provided. I.e. if node had
already had a value being persited then it either overwritten (ordinary fields) or extended
(collection fields).
See Also