• RuntimesUnity
  • Why ExposedList<T> is used instead of List<T>?

What is the benefit of using ExposedList<T> instead of List<T>?
I wonder really.

Related Discussions
...

Valid question. Usages of List<T> in spine-csharp were replaced with ExposedList<T> back in 2015 originally for the reason to avoid indexer overhead. Admittedly this benefit may have diminished since then.

Benefits for keeping it that way are (a) to have any reallocations under full control at any time ("likely behaviour" is unfortunately not "guaranteed behaviour") and (b) to not break the spine-csharp interface.

  • TheVoid님이 이에 답장했습니다.
  • TheVoid 님이 이 게시물을 좋아합니다..

    Harald
    Thank you, My curiosity has cleared up!

    • Harald 님이 이 게시물을 좋아합니다..