Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27199

VS 2010 Array as property

$
0
0
Some help please.

I have created a class Building.

This class has 3 properties:

BuildingName as string
BuildingLevel as integer
and BuildingPoints as integer

Now I would like the property BuildingPoints to be an array, which i can fill with a list of integers

This is how BuildingPoints is defined in the code

Private BuildingPoints As Integer
Public Property NewBuidingpoint() As Integer
Get
Return BuildingPoints
End Get
Set(ByVal value As Integer)
BuildingPoints = value
End Set
End Property


now how do i properly define the BuildingPoint array and how do I fill it?

Thanks

Viewing all articles
Browse latest Browse all 27199

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>