Private Property x vs. Private Property x()

What's the difference between
Private Property x As MyClass

Open in new window

Private Property x() As MyClass

Open in new window

Do the () make any difference?
Who is Participating?
clockwatcherConnect With a Mentor Commented:
It makes a big difference.  The parenthesis indicate that it's an array.  

Property x as MyClass ' x is a single MyClass instance
Property x() As MyClass 'x is an array of MyClass instances
deleydAuthor Commented:
Good to know!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.