Guest User

костыль

a guest
Jul 5th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1.  public class Employees : ICollection
  2.     {
  3.  
  4.         public string CollectionName;
  5.         public ArrayList emps = new ArrayList();
  6.         public Employee current = new Employee();
  7.     ...
  8.     public Employee Search(string name, Employees emps)
  9.         {
  10.             for (int i = 0; i < emps.Count; i++)
  11.             {
  12.                 if (emps[i].Name == name)
  13.                 {
  14.                     current = emps[i];
  15.  
  16.                 }
  17.                
  18.             }
  19.             return current;
  20.  
  21.             ...
  22.         }
Advertisement
Add Comment
Please, Sign In to add comment