Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    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
    object
    ConfigDefaultsApplier
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    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

    target T
    The config instance.

    Type Parameters

    T
    The config type.
    (c) 2024 Ethan Hann. All rights reserved.