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
}