I was just curious if I should even bother with creating a new class to hold 2 parameters of information or just hold them in an array list.
Currently I am sorting information into any arraylist like the following.
VB Code:
  1. ArrayList _route = new ArrayList();
  2.  
  3. _route.Add(1 + "|" + 2);
  4. _route.Add(5 + "|" + 24);
  5. _route.Add(123 + "|" + 12);
  6. // etc...

Would it be "better" to use a class or structure and add it to the ArrayList, I only ask because it would reduce extra parsing when extracting the information but MOST importantly would it hinder the performance?

VB Code:
  1. public class Path
  2. {
  3.      private Int32 _clid, _oid;
  4.  
  5.      public Path(Int32 CLID, Int32 OID)
  6.     {
  7.         this._clid = CLID;
  8.         this._oid = OID;
  9.     }
  10.  
  11.     public Int32 CLID
  12.    {
  13.        get { return _clid; }
  14.    }
  15.  
  16.     public Int32 OID
  17.    {
  18.        get { return _oid; }
  19.    }
  20. }
  21.  
  22. // Add information to arraylist using the path class.
  23.  
  24. ArrayList _route = new ArrayList();
  25.  
  26. _route.Add(new Path(1, 2));
  27. _route.Add(new Path(5, 24));
  28. _route.Add(new Path(123,12));
  29. // etc...

The Path class could be instantiated up to 100+ times.

Any ideas or thoughts would be great.