C# to VB question
Posted
by Jim
on Stack Overflow
See other posts from Stack Overflow
or by Jim
Published on 2010-06-09T16:30:36Z
Indexed on
2010/06/09
16:52 UTC
Read the original article
Hit count: 353
Hi,
I can achieve in VB what the following C# snippet does but it seems very clunky since I perform a Linq query to obtain the events for the relevant user. Is there a neat way?
ctx.FetchEventsForWhichCurrentUserIsRegistered((op) =>
{
if (!op.HasError)
{
var items = op.Value;
_currentUserRegisteredEventIds = new HashSet<int>(items);
UpdateRegistrationButtons();
}
}, null);
}
else
{
_currentUserRegisteredEventIds = null;
UpdateRegistrationButtons();
}
© Stack Overflow or respective owner