Class ConfigDefaultsApplier
- Namespace
- AetherUtils.Core.Configuration
- Assembly
- AetherUtils.Core.dll
Applies default values defined in ConfigAttribute to config objects after deserialization.
public static class ConfigDefaultsApplier
- Inheritance
-
ConfigDefaultsApplier
- Inherited Members
Methods
ApplyDefaults<T>(T)
Applies default values to all properties marked with ConfigAttribute
where the current value is null or a default primitive.
public static void ApplyDefaults<T>(T target) where T : class
Parameters
targetT- The config instance.
Type Parameters
T- The config type.