Array

  • Thread starter Thread starter André Almeida Maldonado
  • Start date Start date
A

André Almeida Maldonado

Hy guys...

I'm creating a class (class.vb), and need to create a property that will be
an array...

How can I do it????


thank's
 
* "André Almeida Maldonado said:
I'm creating a class (class.vb), and need to create a property that will be
an array...

\\\
Public Class MyClass
Private m_MyArray() As Integer

Public Property MyArray() As Integer()
Get
Return m_MyArray
End Get
Set(ByVal Value As Integer())
m_MyArray = Value
End Set
End Property
End Class
///
 
André Almeida Maldonado said:
Hy guys...

I'm creating a class (class.vb), and need to create a property that
will be an array...

How can I do it????

Type
public property MyProp as integer()

press <enter> and the editor should create the property procedures, and you
now have a Property returning an array of Integers.
 
Back
Top