예제 #1
0
        static UnsafeOrderedCollection *Tree(params int[] values)
        {
            var c = UnsafeOrderedCollection.Allocate <int>(values.Length * 2);

            for (int i = 0; i < values.Length; ++i)
            {
                UnsafeOrderedCollection.Insert(c, values[i]);
            }

            return(c);
        }