コード例 #1
0
 //Traverse the arraylists created above by using the Entity class reference and print out the details of each object
 ///<summary>
 ///Method Name:PrintValues
 /// Description://print the objects with Typed arraylist
 /// Author:bhumi
 /// Created On:21/5/2015
 /// </summary>
 public void PrintValues()
 {
     try
     {
         Typed_Arraylist obj = new Typed_Arraylist();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
コード例 #2
0
 //Create typed arraylists with 3 objects of Customer class and 2 objects of Franchisee class
 ///<summary>
 ///Method Name:TypedArrayListObj
 /// Description://objects with Typed arraylist
 /// Author:bhumi
 /// Created On:21/5/2015
 /// </summary>
 public void TypedArrayListObj()
 {
     try
     {
         objArlist = new Typed_Arraylist();
         Console.WriteLine(objconst.typary1);
         int num_fr = Convert.ToInt32(Console.ReadLine());
         for (int i = 0; i < num_fr; i++)
         {
             // Get the data according to No of Franchisee
             objArlist.GetTypedArrayList();
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }