I'm trying to get interception working in vb.net since my work only allows that. I've never encountered a lambda that has this If.something syntax before.
scan.Include(If.Implements<IBusinessService>, (x, y) =>
{
if (x.IsClass)
y.Configure<Interception>().
SetDefaultInterceptorFor(x,
new VirtualMethodInterceptor
());
})
How does this look in vb.net? What is this syntax called in case I need to google this in the future?