title: Check if key exists in Registry
body: <p>I have a <code>Dictionary&lt;sting,string&gt;</code> where I store keys and their paths and I want to check if those paths exist already in the Registry.</p>
  <p>That's my dictionary:</p>
  <pre><code>public static Dictionary&lt;string, string&gt; AllRegKeys = new Dictionary&lt;string,string&gt;()
  {
      {&quot;clientId&quot;, &quot;MyApp\\credentials\\Identif&quot;},
      {&quot;clientSecret&quot;, &quot;MyApp\\credentials\\Identif&quot;},
      {&quot;Key 1&quot;, &quot;MyApp\\credentials\\Identif&quot;},
      {&quot;key 2 &quot;, &quot;MyApp\\credentials\\Identif&quot;},
      {&quot;using link &quot;, &quot;MyApp\\credentials\\Folder&quot;},
      {&quot;category&quot;, &quot;MyApp\\credentials\\Folder\\Cat&quot;},
      {&quot;link1&quot;, &quot;MyApp\\credentials\\Settings\\link&quot;},
      {&quot;link2&quot;, &quot;MyApp\\credentials\\Settings\\link&quot;},
      {&quot;link3&quot;, &quot;MyApp\\credentials\\Settings\\link&quot;},
  };
  </code></pre>
  <p>I've tried to loop on the dictionary and try to compare between the values and existing paths in the Registry but i'm stuck in here:</p>
  <pre><code>foreach (KeyValuePair&lt;string, string&gt; entry in ConstantsField.AllRegKeys)
  {
      if(entry.Value== )
  }
  </code></pre>