title: C# Lazy property
body: <p>I have a Lazy property in my class:</p>
  
  <pre><code>private Lazy&lt;ISmtpClient&gt; SmtpClient
      {
          get
          {
              return new Lazy&lt;ISmtpClient&gt;(() =&gt; _objectCreator.Create&lt;ISmtpClient&gt;(), true);
          }
      }
  </code></pre>
  
  <p>Also a methode that uses this proptery:</p>
  
  <pre><code>public void SendEmail(MailMessage message)
      {
          SmtpClient.Value.ServerName = "testServer";
          SmtpClient.Value.Port = 25;
  
          SmtpClient.Value.Send(message);
      }
  </code></pre>
  
  <p>But in my SmtpClient, in Send(string message) methode are all the propteries that i initialized in the above SendEmail(MailMessage message) methode, null. </p>
  
  <p>How can i fix this?</p>
  
  <p>Thanks in advance.</p>