- Home /
Javascpt Array to c# Arraylist (shift and pop)
Hello,
I'm trying to convert a Unity JS script to C# sharp. in this script is made extensive use of an Unity Array that uses shift and pop command's.
Google could not tell me how to convert this with equal C# arraylist commands.
Please help.
Peter.
Comment
Answer by almo · Jul 13, 2011 at 08:10 PM
Use a LinkedList?
http://msdn.microsoft.com/en-us/library/he2s3bh7.aspx
I think you can get the behavior you want from this.
Your answer
![](https://koobas.hobune.stream/wayback/20220612142747im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
arraylist doesn't stop adding to string-infinite c# 1 Answer