ConfigAccessorReadFieldsInType Method |
Reads the persistent fields from the URI specified by the class annotation.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax public static void ReadFieldsInType(
Type type,
Object instance,
string group = ""
)
Request Example
View SourceParameters
- type
- Type: SystemType
The type to load the fields for. - instance
- Type: SystemObject
The instance of type type. If it's null, then only the static fields
will be loaded.
- group (Optional)
- Type: SystemString
The group to load the fields for. If null, then all the groups that are defined in the
class annotation via PersistentFieldsFileAttribute will be loaded.
See Also