Public Overrides Function BuildChannelListener(Of TChannel As {Class, IChannel})(context As BindingContext) _ >As IChannelListener(Of TChannel) > If context Is Nothing Then > Throw New ArgumentNullException("context") > End If > > context.BindingParameters.Add(Me) > Return context.BuildInnerChannelListener(Of TChannel)() > End FunctionThis syntax is not accepted in VB.NET. I see the designer showing a bad code under {.