Problem with Code
-
Hi , well guys , i think i have a problem right here i was programming in vb.net , but i realized that C# is two much better cuz i was enjoying programming on Java so the C# & Java are approximatley the same . but today i was trying to right this line of code : in vb.net we right : DataSet.Tables.Rows(0).Items(0) in C# i tried : DataSet.Tables.Rows(0).Items(0); but it doesn't work can you tell me why ? & as a beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net book i'll be gratefull Thank you very much for your help
try to be good if you can't be the best
-
Hi , well guys , i think i have a problem right here i was programming in vb.net , but i realized that C# is two much better cuz i was enjoying programming on Java so the C# & Java are approximatley the same . but today i was trying to right this line of code : in vb.net we right : DataSet.Tables.Rows(0).Items(0) in C# i tried : DataSet.Tables.Rows(0).Items(0); but it doesn't work can you tell me why ? & as a beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net book i'll be gratefull Thank you very much for your help
try to be good if you can't be the best
VB uses parantheses both for method parameters and indices. When you convert code to C#, you have to know if it's a method call or an index that you are using, as C# uses brackets [] for indices.
DataSet.Tables.Rows[0].Items[0]
--- b { font-weight: normal; }
-
Hi , well guys , i think i have a problem right here i was programming in vb.net , but i realized that C# is two much better cuz i was enjoying programming on Java so the C# & Java are approximatley the same . but today i was trying to right this line of code : in vb.net we right : DataSet.Tables.Rows(0).Items(0) in C# i tried : DataSet.Tables.Rows(0).Items(0); but it doesn't work can you tell me why ? & as a beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net book i'll be gratefull Thank you very much for your help
try to be good if you can't be the best
Mohammed Amine wrote:
beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net
C# books - ever thought of using google (or any other search engine) or even visiting Microsoft for C# tutorials. Try this link [^] or perhaps reading Marc Clifton's 2 part series starting with [^] or any of the other beginner tutorials here on Code Project
-
Mohammed Amine wrote:
beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net
C# books - ever thought of using google (or any other search engine) or even visiting Microsoft for C# tutorials. Try this link [^] or perhaps reading Marc Clifton's 2 part series starting with [^] or any of the other beginner tutorials here on Code Project
Richard A. Abbott wrote:
C# books - ever thought of using google (or any other search engine)
Strange how so many people seem never to have heard of Google! Perhaps if he's asked for C# book recommendations, rather than just C# books. Perhaps that's what he meant to say. If so he's excused, as English is not his first language.
Kevin