Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Employees : ICollection
- {
- public string CollectionName;
- public ArrayList emps = new ArrayList();
- public Employee current = new Employee();
- ...
- public Employee Search(string name, Employees emps)
- {
- for (int i = 0; i < emps.Count; i++)
- {
- if (emps[i].Name == name)
- {
- current = emps[i];
- }
- }
- return current;
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment