What's New in Visual Basic 2010: Listing 2

Auto-Implemented Properties

Visual Basic 2010 C# 2008 and C# 2010 Visual Basic 2008
Public Property VB10Auto As String = "a"
public string CSharpAuto { get; set; }
Private _VB9Propery As String
Public Property VB9Property() As String
  Get
    Return _VB9Propery
  End Get
  Set(ByVal value As String)
    _VB9Propery = value
  End Set
End Property
comments powered by Disqus

Featured

Subscribe on YouTube