Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello every one ,i want to know the meaning of the above question.
if it is wrong ,i want to know why
thank u c# corner
Posted
Updated 17-Jun-14 4:03am
v2
Comments
DamithSL 17-Jun-14 10:56am    
From where you copy this code? you tell us first what is sqlconnection in this code. is it SqlConnection Class[^] or some other class you created?
yedhuvamshi 26-Jun-14 1:27am    
Thank u for ur responce
It is sqlconnection() class only
i want to know what is wrong if i assign long datatype reference to the sqlconnection() object

Thank u ....

1 solution

It's wrong because the sqlconnection constructor[^] does not return a long ... it returns an instance of a sqlconnection class[^]
 
Share this answer
 
Comments
Richard MacCutchan 17-Jun-14 10:52am    
He wants to know cos it's a homework question (probably).
CHill60 17-Jun-14 12:47pm    
That's what I thought too ... hence my rather terse response :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900