0

Hi
Please tell vb.net equivalent of following:

C# Syntax

public class AuthorList : Control
	{
	static AuthorList()
		{
			Post.Saved += delegate { _Html = null; };
		}

I tried using C# to VB.NET code converter which gave me this:

Public Class AuthorList
        Inherits Control
           Shared Sub New()
               Post.Saved += Function() Do
               _Html = Nothing
           End Sub
   End Sub

Which on build in visual studio 2008 gives an error.

Please help

Edited by __avd: Added [code] tags. For easy readability, always wrap programming code within posts in [code] (code blocks).

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Dr-Delta
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.