VB.NET equivalent of C# property shorthand?

后端 未结 3 2031
一向
一向 2020-12-01 03:12

Is there a VB.NET equivalent to the C#:

public string FirstName { get; set; }

I know you can do

Public Property name() As          


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 03:41

    Unfortunately, Visual Basic 9 (which ships with .NET 3.5/Visual Studio 2008) does not have automatic properties.

提交回复
热议问题