text: public static void Unregister(TransportProtocol proto){foreach (JavaWeakReference<TransportProtocol> @ref in protocols){TransportProtocol refProto = @ref.Get();if (refProto == null || refProto == proto){protocols.Remove(@ref);}}}