Is there an array literal in VB.NET 9/ VS2008? Something like this pseudo-code:
Dim MyArray = {"e1", "e2", "e3"}
Or maybe some list that can be created instantly (pseudo-code):
Dim MyList = List("e1", "e2", "e3")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All work equally well. If you choose the third one, it will infer the type and give you the correct type of array (integer in this case). The fourth one will give you an object array.