示例#1
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)
 {
     this.List.Remove(item);
 }
示例#2
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)
 {
     this.List.Insert(index, item);
 }
示例#3
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 this.List.Contains(item);
 }
示例#4
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 this.List.IndexOf(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 this.List.Add(item);
 }