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