List to T[] without copying

后端 未结 8 786
名媛妹妹
名媛妹妹 2020-12-05 12:51

I\'m have a large list of value types that needs to be given to OpenGL. It would be great if this could happen as quickly as possible. What I\'m doing now looks like this:

8条回答
  •  星月不相逢
    2020-12-05 13:45

    The IList interface isn't that difficult to do (well, not so long as Reflector is free and functioning, hint hint).

    You can create your own implementation and expose the internal array as a public property.

提交回复
热议问题