What is the diffrence between these statement?
dim ds as new dataset()
dim ds as new dataset
dim ds as new dataset()
dim ds as new dataset
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 6, 2011, 4:43 AM
In VB.NET you can omit the () if the constructor (or any other method) doesn't take any parameters.
So, here you're calling the overload of the DataSet constructor which takes no parameters and so you can omit the parentheses.