title: Key Size in RSA C# is not changing !
body: <p>I am generating key pair and store them in xml file using</p>
  
  <pre><code>ToXmlString(true);
  </code></pre>
  
  <p>I need to set the key size to 2048
  according to the MSDN the only place to do this is from the constructor of the RSACryptoServiceProvider</p>
  
  <pre><code>    private void AssignParameter(ProviderType providerType)
      {
          CspParameters cspParams;
  
          cspParams = new CspParameters((int)providerType);
          cspParams.KeyContainerName = RSAEncryption.containerName;
          cspParams.Flags = CspProviderFlags.UseMachineKeyStore;
          cspParams.ProviderName = "Microsoft Strong Cryptographic Provider";
          cspParams.KeyNumber = (int)KeyNumber.Exchange;
  
          this.rsa = new RSACryptoServiceProvider(2048, cspParams);
      }
  </code></pre>
  
  <p>when I check the key size using</p>
  
  <pre><code>int x = this.rsa.KeySize;
  </code></pre>
  
  <p>I always get 1024
  so whats the wrong here??</p>