Convert a signle line in c# to VB? RRS feed

  • Question

  • User423830209 posted

    Can any one help me convert the following c# code to vb:

    topContent.SetRenderMethodDelegate((w, c) => w.Write(this.Title));

    I used an online converter, and got this result:

    topContent.SetRenderMethodDelegate(Function(w, c) w.Write(Me.Title))

    But VS says 'Expression does not produce a value.'

    Many thanks!

    Monday, December 12, 2011 2:32 AM

All replies