I have a Uri that contains a part of the path that i am putting in the if block. Its something like
if (absUri.AbsolutePath.Contains("W3C//DTD%20XHTML%201.1//EN"))
I want to replace .Contains part with something more reliable and robust as if there is some piece of string after //EN, even that will satisfy the if block. The whole path is something like this: C:/Users/a/desktop/fol/W3C//DTD%20XHTML%201.1//EN. Is there any method?