/// <summary> /// Generates a deep clone of the current configuration. /// </summary> /// <returns>A deep clone of the current configuration</returns> protected Config Copy(Config fallback = null) { //deep clone return(new Config { Fallback = Fallback != null?Fallback.Copy(fallback) : fallback, Root = Root, Substitutions = Substitutions }); }
/// <inheritdoc /> protected Config Copy() { //deep clone return(new Config { Fallback = Fallback?.Copy(), Root = Root, Substitutions = Substitutions }); }