C# does not have VB.NET 'like' equivalent
For example in VB.NET, we can do this:
Dim mystr as string = "helloworld"
If mystr Like "*rld" Then
found = True
else
found =false
End If
What would be the best way to do it in C#?
Any help would be highly appreciated.
Thanks,
MB
For example in VB.NET, we can do this:
Dim mystr as string = "helloworld"
If mystr Like "*rld" Then
found = True
else
found =false
End If
What would be the best way to do it in C#?
Any help would be highly appreciated.
Thanks,
MB