title: Access a value inside ICollection
body: <pre><code>string greeting = "";    
  foreach (System.Collections.Generic.ICollection&lt;object&gt; x in greetingRecommendation.Resolution.Values)
      {
             foreach (var y in x)
             {
                 greeting = (string)y;
             }
      }
  </code></pre>
  
  <p>I need to retrieve the "Good Morning" value which is inside "greetingRecommendation.Resolution.Values" I did it as above(using a foreach) and its working. But is there a better way to access that single value.
  <a href="https://i.stack.imgur.com/6OTeH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6OTeH.png" alt="enter image description here"></a></p>