Esempio n. 1
0
        public static PeerConnection.TcpCandidatePolicy ToNative(this TcpCandidatePolicy self)
        {
            switch (self)
            {
            case TcpCandidatePolicy.Enabled:
                return(PeerConnection.TcpCandidatePolicy.Enabled);

            case TcpCandidatePolicy.Disabled:
                return(PeerConnection.TcpCandidatePolicy.Disabled);

            default:
                throw new ArgumentOutOfRangeException(nameof(self), self, null);
            }
        }
 public static RTCTcpCandidatePolicy ToPlatformNative(this TcpCandidatePolicy nativePort) => (RTCTcpCandidatePolicy)nativePort;
 public static RTCTcpCandidatePolicy ToNative(this TcpCandidatePolicy self)
 {
     return((RTCTcpCandidatePolicy)self);
 }