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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 6, 2011, 12:43 AM EDT
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.