public void MapToSearchField(ISearchField searchField)
 {
     if (!(searchField is SearchField <T>))
     {
         throw new ArgumentException("SearchField must be of type " + typeof(T).FullName + ".", "searchField");
     }
     ((SearchField <T>)searchField).WhereEquals(EqualTo);
 }
Beispiel #2
0
 public void Add(ISearchField field)
 {
     throw new NotSupportedException();
 }
Beispiel #3
0
 /// <summary>Adds the specified field.</summary>
 /// <param name="field">The field.</param>
 public virtual void Add(ISearchField field)
 {
     this._fields.Add(field);
 }