Equivalent of the VB.NET -- Like -- operator

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
L

Lloyd Sheen

Is there an equivalent of the LIKE operator in VB.NET for C#? Can't find
anything in docs. Would I have to use regular expressions ?

Lloyd Sheen
 
Lloyd said:
Is there an equivalent of the LIKE operator in VB.NET for C#? Can't find
anything in docs. Would I have to use regular expressions ?

I think so, RegEx.IsMatch(inputString, regexPatternString) should do.
 
Lloyd,
Would I have to use regular expressions ?

Yes, unless you want to reference Microsoft.VisualBasic.dll and call
the implementation of Like that way.



Mattias
 
Back
Top