コード例 #1
0
 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);
 }
コード例 #2
0
 public void Add(ISearchField field)
 {
     throw new NotSupportedException();
 }
コード例 #3
0
 /// <summary>Adds the specified field.</summary>
 /// <param name="field">The field.</param>
 public virtual void Add(ISearchField field)
 {
     this._fields.Add(field);
 }