No. Writing properties is a programmer's task and done before compilation.
Maybe you want to store additional values related to an object? Then have a
look at the various collections available; you could use the object as the
key.
Thx for the replay.
The reason for this, dependent of a setting i need a articleobject with
between 1 and 20 salesprices properties. But if it is not possible i will
code the 20 properties.
The reason for this, dependent of a setting i need a articleobject with
between 1 and 20 salesprices properties. But if it is not possible i will
code the 20 properties.
Rather than code 20 properties, add a single property that is a List
(Of T) for holding your prices.
Private _salesPrices As List(Of Decimal)
Public ReadOnly Property SalesPrices As List(Of Decimal)
Public Get
Return _salesPrices
End Get
End Property
Then you can have as many or as few sales prices as you wish.
Chris
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.