CK.Plugins.ObjectExplorer.ViewModels.LogViewModels.VMLogMethodConfig.CreateFrom C# (CSharp) Method

CreateFrom() public static method

public static CreateFrom ( VMLogServiceConfig holder, ILogMethodConfig m ) : VMLogMethodConfig
holder VMLogServiceConfig
m ILogMethodConfig
return VMLogMethodConfig
        public static VMLogMethodConfig CreateFrom( VMLogServiceConfig holder, ILogMethodConfig m )
        {
            VMLogMethodConfig result = new VMLogMethodConfig( holder, m.Name, false );
            result._doLog = m.DoLog;
            result.ReturnType = m.ReturnType.ToString();
            foreach( ILogParameterInfo p in m.Parameters )
                result.Parameters.Add( new LogParameterInfo( p.ParameterName, p.ParameterType ) );
            result.LogOptions = m.LogOptions;
            return result;
        }

Same methods

VMLogMethodConfig::CreateFrom ( VMLogServiceConfig holder, ISimpleMethodInfo m ) : VMLogMethodConfig