title: C# constructor to call constructor after executing code
body: <p>I've seen answers on constructor chaining but they don't apply for my problem.</p>
  
  <p>I have a the following constructor that requires a couple of parameters:</p>
  
  <pre><code>public SerilogHelper(string conString, int minLevel)
      {
          var levelSwitch = new LoggingLevelSwitch();
          levelSwitch.MinimumLevel = (Serilog.Events.LogEventLevel)(Convert.ToInt32(minLevel));
  
          _logger = new LoggerConfiguration()
              .MinimumLevel.ControlledBy(levelSwitch)
              .WriteTo.MSSqlServer(connectionString: conString, 
                                   tableName: "Logs", 
                                   autoCreateSqlTable: true)
              .CreateLogger();
      }
  </code></pre>
  
  <p>One particular client of this constructor won't have the values required for the parameters so I'd like to be able to call this simple constructor which would get the required values then call the 1st constructor:</p>
  
  <pre><code>public SerilogHelper()
      {
          string minLevel = SSOSettingsFileManager.SSOSettingsFileReader.ReadString(
            "LCC.Common", "serilog.level");
          string conString = SSOSettingsFileManager.SSOSettingsFileReader.ReadString(
            "LCC.Common", "serilog.connectionstring");
  
          SerilogHelper(conString, minLevel);
      }
  </code></pre>
  
  <p>Problem is, I get a red squiggly on the call to the 2nd constructor with the message <em>SerilogHelper is a 'type' but used like a 'variable'</em></p>