c# array vs generic list

Posted by L G on Stack Overflow See other posts from Stack Overflow or by L G
Published on 2010-03-12T06:18:28Z Indexed on 2010/03/12 6:27 UTC
Read the original article Hit count: 203

Filed under:
|
|

Hi,

i basically want to know the differences or advantages in using a generic list instead of an array in the below mentioned scenario

Class Employee
{
private _empName;

Public EmpName
{
get{return _empName;}
set{_empName = value;}
}

}

1. Employee[] emp 
2. List<Employee> emp

can anyone please tell me the advantages or disadvaatges and which one to prefer

© Stack Overflow or respective owner

Related posts about c#

Related posts about generic-list