title: CRM Online RetrieveMultiple with OptionSetValueCollection condition
body: <p>I'm trying to retrieve records that contain some optionsetvalue from multi option set pick list.</p>
  
  <p>This line make my code fail:</p>
  
  <pre><code>int[] values = GetValues();
  query.Criteria.AddCondition(new ConditionExpression(fieldName, 
  ConditionOperator.ContainValues, values);
  </code></pre>
  
  <p>When I put the values with a comma separator the code works:</p>
  
  <pre><code>query.Criteria.AddCondition(new ConditionExpression(fieldName, 
  ConditionOperator.ContainValues, 1,2,3);
  </code></pre>
  
  <p>Only problem is that the values are dyanamic so I can't do that.
  The only way I found so far to overcome it was this:</p>
  
  <pre><code>FilterExpression filter = new FilterExpression(LogicalOperator.Or);
  foreach (int value in values)
  {
      filter.AddCondition(new ConditionExpression(fieldName, 
          ConditionOperator.ContainValues, value));
  }
  query.Criteria.AddFilter(filter);
  </code></pre>
  
  <p>Just wondering if there is a better solution than this one?</p>