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?
It's not part of the language, or the standard library. It's just a custom method some developer wrote, or it's a part of a 3rd party library. We could theorize, based on the name and context, how it might be implemented, but they would only be guesses.