VB.net to C# Equivalent of “AddressOf”

后端 未结 4 518
囚心锁ツ
囚心锁ツ 2021-01-19 05:17

I am trying to implement this example

http://blog.evonet.com.au/post/Gridview-with-highlighted-search-results.aspx

but the only problem I am facing is the Ad

4条回答
  •  抹茶落季
    2021-01-19 05:52

    You should be able to use something like this:

    return ResultStr.Replace(InputTxt, new MatchEvaluator(ReplaceWords))
    

    Basically, in c# you don't need the 'addressOf' operator. I like having it, since it makes it real clear whats up, but c# is just like that.

提交回复
热议问题