コード例 #1
0
        public static bool TryFrom(string value, out Href href)
        {
            if (HttpLink.TryFrom(value, out var link))
            {
                href = link;
            }
            else if (HttpResource.TryFrom(value, out var resource))
            {
                href = resource;
            }
            else
            {
                href = null;
            }

            return(href != null);
        }
コード例 #2
0
 public HttpLink ToLink() =>
 HttpLink.From(this);