public static void unregister(TransportProtocol proto) {for (WeakReference<TransportProtocol> ref : protocols) {TransportProtocol refProto = ref.get();if (refProto == null || refProto == proto)protocols.remove(ref);}}

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