Hello Frds,
I'm having arraylist to add student info but i have to create unique id per record below is my class.
Student objStudent=new Student(123,"Nj");
statArray.Add(objStudent)
public class Student
{
private string name;
private int RollId;
public string Name
{
get { return name; }
set { name = value; }
}
public int Id
{
get { return RollId; }
set { RollId = value; }
}
public Employee(string name, int id)
{
{
this.name=name;
this.Id=id;
}
}
...
Go to the complete details ...