Converting Java into C#

Hi I am converting one of the scripts I found on the asset store into C# I got stuck on this piece of code:

function AddItem(Item:Transform)
{
var newContents = new Array(Contents);
newContents.Add(Item);
Contents=newContents.ToBuiltin(Transform); //Array to unity builtin array

Contents is var Contents : Transform[ ];

how would I change it I know how to change the function but I have no clue what about the rest, I am not sure about the ToBuiltin. Any Help would be appreciated!

ToBuiltin is a member of arrays that just turns it into a type[ ]
But Array is a js-only type, switch to using list, which has ToArray() as an equivalent

List<Transform> newContents = new List<Transform>(Contents)
newContents.Add(Item);
Contents = newContents.ToArray();