Look into following code block:
string[] _array = new string[] { "a", "b", "c" };
List<string> _listArray = new List<string>() { "a", "b", "c" };
//Why Invalid?
_array.Add("e");
_array.Insert(4, "e");
//Allowed for list.
_listArray.Add("e");
_listArray.Insert(4, "e");
Since both Array
and List
implements almost same interface and use as collection of object then why Array
dont have Add
and Insert
method