Dicom.Network.DcmSocket.Create C# (CSharp) Method

Create() public static method

public static Create ( DcmSocketType type ) : DcmSocket
type DcmSocketType
return DcmSocket
        public static DcmSocket Create(DcmSocketType type)
        {
            #if SILVERLIGHT
            return type == DcmSocketType.TCP ? new DcmTcpSocket() : null;
            #else
            if (type == DcmSocketType.TLS)
                return new DcmTlsSocket();
            else if (type == DcmSocketType.TCP)
                return new DcmTcpSocket();
            else if (type == DcmSocketType.ISCL)
                return null;
            else
                return null;
            #endif
        }