Search Unity

Feature Request Makes NetworkConnection be IEquatable<NetworkConnection >

Discussion in 'Unity Transport' started by Kichang-Kim, Jan 17, 2022.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    Hi. Current struct NetworkConnection is plain struct, so GC has occurred when using it as key of Dictionary.

    It can be simply resolved by implementing IEquatable<T>.
     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Good suggestion, thank you! I added a task to our backlog.