Ejemplo n.º 1
0
        private void AllocateBoxedStructArray_SlimStruct(object[] array)
        {
            int iterationCount = array.Length;

            for (int i = 0; i < iterationCount;)
            {
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
                array[i++] = new SlimStruct();
            }
        }
Ejemplo n.º 2
0
 private void AllocateStructArray_SlimStruct(int iterationCount)
 {
     object o = new SlimStruct[iterationCount];
 }