예제 #1
0
 /// <summary>
 /// Returns zero based index of the Word object in
 /// the collection
 /// </summary>
 /// <param name="item" type="Word">
 /// Word object to be checked for index
 /// </param>
 /// <returns type="integer">
 /// Zero based index of Word object in the collection
 /// </returns>
 public int IndexOf(Word item)
 {
     return(List.IndexOf(item));
 }
예제 #2
0
 /// <summary>
 /// Check if the Word object is in the collection
 /// </summary>
 /// <param name="item" type="Word">
 /// Word object
 /// </param>
 /// <returns type="bool">
 /// Boolean value of the checking result
 /// </returns>
 public bool Contains(Word item)
 {
     return(List.Contains(item));
 }
예제 #3
0
 /// <summary>
 /// Add Word object to the collection at specified index
 /// </summary>
 /// <param name="index" type="integer">
 /// Zero based index
 /// </param>
 /// <param name="item" type="Word">
 /// Word object
 /// </param>
 public void Insert(int index, Word item)
 {
     List.Insert(index, item);
 }
예제 #4
0
 /// <summary>
 /// Remove the Word object from collection
 /// </summary>
 /// <param name="item" type="Word">
 /// Word object to be removed
 /// </param>
 public void Remove(Word item)
 {
     List.Remove(item);
 }
예제 #5
0
 /// <summary>
 /// Add a Word object to the collection
 /// </summary>
 /// <param name="item" type="Word">
 /// Word object
 /// </param>
 /// <returns type="integer">
 /// Zero based index of the added Word object in
 /// the colleciton
 /// </returns>
 public int Add(Word item)
 {
     return(List.Add(item));
 }