c# - Can you insert at position 0 in a List<MyObject>? -


I need to insert an object at the beginning of a collection.

My colleciton type list

How can I do this?

Sure you can; For example, a general list of wires:

  list & lt; String & gt; Value = new list & lt; String & gt; (); Values.Instert (0, "NewString");  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -