469,927 Members | 1,777 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Need help in converting from C# to vb.net.

Hello Friends,
I need help converting the below C# code snippet to vb.net.

case "CreationDate":
comparison = new Comparison<MembershipUserWrapper>(
delegate(MembershipUserWrapper lhs,
MembershipUserWrapper rhs)
{
return
lhs.CreationDate.CompareTo(rhs.CreationDate);
}
);
to its equivalent vb.net and the tools give me the

Case "CreationDate"
comparison = New Comparison(delegate, MembershipUserWrapper,
lhs, MembershipUserWrapper, rhs)
Return lhs.CreationDate.CompareTo(rhs.CreationDate)
But when I pasted the code in my VS.NET it complains about the word
"delegate" in the line
"comparison = New Comparison(delegate, MembershipUserWrapper, lhs,
MembershipUserWrapper, rhs)"
and when I mouse hover it says "Expression expected"
Am I missing some thing here?
Thanks
-L

Apr 28 '06 #1
1 857

Learner wrote:
Hello Friends,
I need help converting the below C# code snippet to vb.net.


Hi,

Please see my reply in your other thread.

Also, when posting to more than one group, please *cross post* rather
than (as you have here) multiposting (which is posting the same message
separately to many groups). To cross post, just list all the groups you
want to post to in the Groups: line or (since you are using google
groups) in the To: line, like so:

microsoft.public.dotnet.languages.vb,microsoft.pub lic.dotnet.languages.csharp

This means both groups' participants see all the replies.

Thanks

--
Larry Lard
Replies to group please

Apr 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

27 posts views Thread by sam_cit | last post: by
16 posts views Thread by manmit.walia | last post: by
10 posts views Thread by Hank Stalica | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.