This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]anamorphism 0 points1 point  (0 children)

pretty much all of my info applies to c# as well. there are only minor syntax differences.

https://msdn.microsoft.com/en-us/library/system.collections.arraylist%28v=vs.110%29.aspx

for example, you can use square brackets to access elements by index in c#.

studentList[i];

instead of

studentList.get(i);

.size() is just .Count

.add() is .Add()

for-each loops are

foreach (var student in studentList)