Skip to main content

Posts

Showing posts from 2014

c# list multiple data types

 public class New_Library         {             public string File_Name { get; private set; }             public string File_Full_Path { get; private set; }             public string checksum { get; private set; }             public New_Library(string File_Name1, string File_Full_Path1, string checksum1)             {                 File_Name = File_Name1;                 File_Full_Path = File_Full_Path1;                 checksum = checksum1;             }         }         private void Form1_Load(object sender, EventArgs e)         {             List<New_Library> list_New_Library = new List<New_Library>();             list_New_Library.Add(new New_Library("sometext", "Vishal", "123456")); // store text             list_New_Library.Add(new New_Library("sometext1", "Vishal1", "1234561")); // store text             // read values from List             foreach (New_Library slot in list_New_Libr