Not really that much familiar with object oriented, so please help me with this or kindly point me to where I can best gather info quickly. The sample below confuses me...
differences, athough sometimes they work on both...
dr1.ExecuteReader()
dr1.ExecuteReader
objects1().objects2().objects3
objects1.objects2.objects3()
...and when it is best to use:
Dim sql1 as New SqlCommand (this is creating a new object I know, but the one below is working without creating an object, so what's the use?)
against:
dim sql1 as SqlCommand
thanks
differences, athough sometimes they work on both...
dr1.ExecuteReader()
dr1.ExecuteReader
objects1().objects2().objects3
objects1.objects2.objects3()
...and when it is best to use:
Dim sql1 as New SqlCommand (this is creating a new object I know, but the one below is working without creating an object, so what's the use?)
against:
dim sql1 as SqlCommand
thanks