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); }
public HttpLink ToLink() => HttpLink.From(this);