예제 #1
0
 public int IndexOf(IntDoublePair intDoublePair)
 {
     for (int i = 0; i < List.Count; i++)
         if (this[i] == intDoublePair)    // Found it
             return i;
     return -1;
 }
예제 #2
0
 // TODO: If desired, change parameters to Find method to search based on a property of IntDoublePair.
 public IntDoublePair Find(IntDoublePair intDoublePair)
 {
     foreach (IntDoublePair intDoublePairItem in this)
         if (intDoublePairItem == intDoublePair)    // Found it
             return intDoublePairItem;
     return null;    // Not found
 }
예제 #3
0
 // TODO: If desired, change parameters to Find method to search based on a property of IntDoublePair.
 public IntDoublePair Find(IntDoublePair intDoublePair)
 {
     foreach (IntDoublePair intDoublePairItem in this)
     {
         if (intDoublePairItem == intDoublePair)    // Found it
         {
             return(intDoublePairItem);
         }
     }
     return(null);    // Not found
 }
예제 #4
0
 public int IndexOf(IntDoublePair intDoublePair)
 {
     for (int i = 0; i < List.Count; i++)
     {
         if (this[i] == intDoublePair)    // Found it
         {
             return(i);
         }
     }
     return(-1);
 }
예제 #5
0
 // public methods...
 #region Add
 public int Add(IntDoublePair intDoublePair)
 {
     return(List.Add(intDoublePair));
 }
예제 #6
0
 // TODO: If you changed the parameters to Find (above), change them here as well.
 public bool Contains(IntDoublePair intDoublePair)
 {
     return(Find(intDoublePair) != null);
 }
예제 #7
0
 public void Remove(IntDoublePair intDoublePair)
 {
     List.Remove(intDoublePair);
 }
예제 #8
0
 public void Insert(int index, IntDoublePair intDoublePair)
 {
     List.Insert(index, intDoublePair);
 }
예제 #9
0
 public void Remove(IntDoublePair intDoublePair)
 {
     List.Remove(intDoublePair);
 }
예제 #10
0
 public void Insert(int index, IntDoublePair intDoublePair)
 {
     List.Insert(index, intDoublePair);
 }
예제 #11
0
 // TODO: If you changed the parameters to Find (above), change them here as well.
 public bool Contains(IntDoublePair intDoublePair)
 {
     return (Find(intDoublePair) != null);
 }
예제 #12
0
 public int Add(IntDoublePair intDoublePair)
 {
     return List.Add(intDoublePair);
 }