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.
精彩评论