title: Read System.Net.CredentialCache.DefaultNetworkCredentials.UserName
body: <p>I'm trying to get the userName of the connected user in my application but the <code>System.Net.CredentialCache.DefaultNetworkCredentials.UserName</code> is always empty. </p>
  
  <p>Someone can suggest me how i can do to get it with this method ?</p>
  
  <pre><code>var ClientCredential =  System.Net.CredentialCache.DefaultNetworkCredentials;
  Console.writeLine("UserName : " +  ClientCredential.UserName);
  </code></pre>