Exemple #1
0
 /// <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
     });
 }
Exemple #2
0
 /// <inheritdoc />
 protected Config Copy()
 {
     //deep clone
     return(new Config
     {
         Fallback = Fallback?.Copy(),
         Root = Root,
         Substitutions = Substitutions
     });
 }