Convert this to VB.Net:
public void Initialize(CodeBreezeModuleEvents
context)
{
context.CodeGenerating += OnCodeGenerating;
}
I thought it should be:
public Sub Initialize(CodeBreezeModuleEvents
context) Implements ICodeBreezeModule.Initialize
AddHandler context.CodeGenerating, AddressOf OnCodeGenerating
end sub
But this results in the compiler error that CodeGenerating is not an event of context.
What is the correct way to do this in VB?