问:我想将字符串与具有通配符(*和?)的模式匹配.我知道在VB.Net中,我可以使用Like Operator来做这个,但我怎么做C#?
VB中的示例:
Private Sub Match() Dim testCheck As Boolean testCheck = "apple" Like "*p?e" End Sub
问:C#中的代码?
c#
c# ×1