CK.Plugins.ObjectExplorer.LogConfigExtensions.Clone C# (CSharp) Method

Clone() public static method

Creates a snapshot of the ILogConfig.
public static Clone ( this config ) : ILogConfig
config this to clone.
return ILogConfig
        public static ILogConfig Clone( this ILogConfig config )
        {
            LogConfig c = new LogConfig();
            c.DoLog = config.DoLog;
            foreach( ILogServiceConfig s in config.Services )
            {
                c.Services.Add( Clone( s ) );
            }
            return c;
        }

Same methods

LogConfigExtensions::Clone ( ILogServiceConfig source ) : ILogServiceConfig
LogConfigExtensions