valid URL check in c#

114

valid URL check in c# -

public static bool CheckURLValid(this string source) => Uri.TryCreate(source, UriKind.Absolute, out Uri uriResult) && uriResult.Scheme == Uri.UriSchemeHttps;

Comments

Submit
0 Comments