[Modify] Add them

This commit is contained in:
sta 2020-11-27 19:13:02 +09:00
parent aa6763b883
commit 8607caab31

View File

@ -270,6 +270,12 @@ namespace WebSocketSharp.Net
} }
set { set {
if (value == null)
throw new ArgumentNullException ("value");
if (value.Length == 0)
throw new ArgumentException ("An empty string.", "value");
_targetHost = value; _targetHost = value;
} }
} }