Ejemplo n.º 1
0
 /// <summary>
 /// Initializes search options from option entries.
 /// </summary>
 /// <param name="optionEntries">Option entries.</param>
 /// <param name="optionsProvider">Options provider of which the options should be set.</param>
 private static void InitializeSearchOptionsFromOptionEntries(IEnumerable <KeyValuePair <string, object> > optionEntries, IOptionsProvider optionsProvider)
 {
     if (optionEntries != null && optionsProvider != null)
     {
         foreach (var searchOption in optionEntries.ToArray())
         {
             optionsProvider.SetOptionValue(searchOption.Key, searchOption.Value);
         }
     }
 }
Ejemplo n.º 2
0
 public void SetSearchOption(string option, object value)
 {
     mSearchOptions.SetOptionValue(option, value);
 }