Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool validURL = Uri.TryCreate(parameter, UriKind.Absolute, out Uri uriResult)
- && (uriResult.Scheme == "http" || uriResult.Scheme == "https");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement