title: what is the Equivalent this code in c#
body: <p>I dont know PHP and I am stucking at one Position can anybody help me.</p>
  
  <p>I have a code in PHP.</p>
  
  <pre><code>    $binarySignature = hash_hmac('sha1', $stringToSign, $secretKey, true);
  
      // We need to base64-encode it and then url-encode that.
      $urlSafeSignature = urlencode(base64_encode($binarySignature));
  </code></pre>
  
  <p>Can anybody tell me what is the code in C# for above code.</p>