title: Retrieve all the values in SharedPreference - Monoandroid
body: <p>How can we retrieve all the values in SharedPreferences - Monoandroid?</p>
  
  <p><strong>Context:</strong>  I have a SharedPreference named "ActivatedModuleList". Values inside ActivatedModuleList is as follows</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8' standalone='yes' ?&gt;
  &lt;map&gt;
  &lt;string name="1006"&gt;Level6-PrimaryHolder Access&lt;/string&gt;
  &lt;string name="1007"&gt;Level7-SecondaryKey Access&lt;/string&gt;
  &lt;/map&gt;
  </code></pre>
  
  <p>More Key/Values will be added or may be removed from this "ActivatedModuleList". At some point, i need to read all the key-value Pairs from this SharedPreferences.</p>
  
  <p><em><strong>Question:</em></strong></p>
  
  <p>How can we retrieve all the values in SharedPreferences through Monoandroid?</p>
  
  <p><strong>or</strong> 
  Got this java code from Net, What is Monodroid equivalent of</p>
  
  <pre><code>Map&lt;String, ?&gt; prefsMap = sharedPreferences.getAll();
  for (Map.Entry&lt;String, ?&gt; entry: prefsMap.entrySet())
  {
     Log.v("SharedPreferences", entry.getKey() + ":" + entry.getValue().toString());
  }
  </code></pre>