public UrlHost(string host) { Value = host; if (ReferenceEquals(null, host) || host.Length <= 0) { Type = EHostType.Empty; } else { Type = EHostType.Opaque; if (StringCommon.Contains(host.AsSpan(), UnicodeCommon.CHAR_FULL_STOP)) { Type = EHostType.Domain; } } }
public UrlHost(IPV6Address address) { Value = address; Type = EHostType.IPV6Address; }