Solved

Private Property x vs. Private Property x()

Posted on 2013-05-30
2
188 Views
Last Modified: 2013-05-30
What's the difference between
Private Property x As MyClass

Open in new window

and
Private Property x() As MyClass

Open in new window

Do the () make any difference?
0
Comment
Question by:deleyd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
clockwatcher earned 100 total points
ID: 39208485
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

http://msdn.microsoft.com/en-us/library/x397t1yt%28v=vs.80%29.aspx
0
 

Author Closing Comment

by:deleyd
ID: 39208560
Good to know!
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question