Did C# provide any method to compare the string with a
wildcard pattern like. Or I can say I want to find a “Like Operator” to do string comparison.
Suppose I have a string .I also have a paragraph , I want to find the string on this parapgraph,But how.In SQL we can do it just using the LIKE operator.
Any Suggestion and reply is grateful.
Wildcards are a complicated beast (a form of regular expressions), but it sounds like you want the
Containsmethod. You can just doparagraph.Contains(sentence).