public void Dispose()
        {
            if (m_Baselib[0].m_Socket.handle != IntPtr.Zero)
            {
                #if ENABLE_UNITY_COLLECTIONS_CHECKS
                AllSockets.OpenSockets.Remove(new SocketList.SocketId
                {
                    socket = m_Baselib[0].m_Socket
                });
                #endif
                Binding.Baselib_RegisteredNetwork_Socket_UDP_Close(m_Baselib[0].m_Socket);
            }

            // FIXME: is created check
            m_LocalAndTempEndpoint.Dispose();
            if (m_PayloadsTx.IsCreated)
            {
                m_PayloadsTx.Dispose();
            }
            if (m_PayloadsRx.IsCreated)
            {
                m_PayloadsRx.Dispose();
            }

            m_Baselib.Dispose();
        }
 public void Dispose()
 {
     m_Handles.Dispose();
     m_PayloadArray.Dispose();
     m_EndpointArray.Dispose();
 }