vb.net - Function returning Object vs Object() -


what difference (if any) between

protected function myfunction() object() 

and

protected function myfunction() object 

visual studio says following, assume there must difference.

[the moethods] cannot overload each other because differ return types.

sorry if missed duplicate, couldn't find online.

as mentioned in comments: first 1 returns array of objects, second simple object.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -