开发者

How to convert this C# code to Visual basic

开发者 https://www.devze.com 2023-01-12 01:16 出处:网络
Im not sure how to convert C# code with delegate into Visual basic code, can you help me? List<XmlUser> matchingUsers = this.Store.开发者_开发知识库Users.FindAll(delegate(XmlUser user)

Im not sure how to convert C# code with delegate into Visual basic code, can you help me?

List<XmlUser> matchingUsers = this.Store.开发者_开发知识库Users.FindAll(delegate(XmlUser user) 
    {
        return user.Email.Equals(emailToMatch,
            StringComparison.OrdinalIgnoreCase);
    }
);


Dim matchingUsers As List(Of XmlUser) = Me.Store.Users.FindAll( _
    Function(user As XmlUser) user.Email.Equals(emailToMatch, StringComparison.OrdinalIgnoreCase) _
)


Compile the code. Get .Net Reflector:

http://www.red-gate.com/products/reflector/

and Select Visual Basic for disassembling. Thats an easy way to convert between the 2 languages.


I've used this converter with some success. I'd start there.

Also, a quick Google search should give you some good results.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号