C# book or resource recommendation
-
Hi all. As someone who has been with VB through all its various forms I would now like to stretch the 'little grey cells' by learning C#. Do you need to know C or C++ to succeed with C#? Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language? Cheers.
-
Hi all. As someone who has been with VB through all its various forms I would now like to stretch the 'little grey cells' by learning C#. Do you need to know C or C++ to succeed with C#? Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language? Cheers.
No - you can (and many do) learn C# as the first programming language. In many ways, not knowing C or C++ can be an advantage and you don't wonder where the pointers have gone! If you are used to VB in it's .NET form then it is mostly a case of adding semicolons, and being less verbose! You could do a lot worse than to pick up a copy of Rob Miles C# Yellow Book[^] - it's free and is the text tat Hull University use to teach beginners. But, if it doesn't suit you, get any Wrox or Apress: just avoid anything with "in 7 days" or exclamation marks in the title!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
Hi all. As someone who has been with VB through all its various forms I would now like to stretch the 'little grey cells' by learning C#. Do you need to know C or C++ to succeed with C#? Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language? Cheers.
Read ECMA 334[^] - yes it's long and mostly boring and repetitive, but if you even remember a quarter of it you will know more about C# than most. Then, read Eric Lipperts blog[^], and you will soon know enough about C# to help in the programming forums ;)
-
No - you can (and many do) learn C# as the first programming language. In many ways, not knowing C or C++ can be an advantage and you don't wonder where the pointers have gone! If you are used to VB in it's .NET form then it is mostly a case of adding semicolons, and being less verbose! You could do a lot worse than to pick up a copy of Rob Miles C# Yellow Book[^] - it's free and is the text tat Hull University use to teach beginners. But, if it doesn't suit you, get any Wrox or Apress: just avoid anything with "in 7 days" or exclamation marks in the title!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
Hi all. As someone who has been with VB through all its various forms I would now like to stretch the 'little grey cells' by learning C#. Do you need to know C or C++ to succeed with C#? Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language? Cheers.
Benjamin Breeg wrote:
As someone who has been with VB through all its various forms
Including VB.NET? If so, then C# will be very easy to learn, considering it uses the same base library as VB.NET (.NET Framework). Here is the same code snippet in each language for comparison:
' VB.NET version.
Public Class TheClass
Private m_someCount As Integer
Public Property SomeCount As Integer
Get
Return Me.m_someCount
End Get
Set(value As Integer)
Me.m_someCount = value
End Set
End Property
Public Sub New()
Me.SomeCount = 0
End Sub
Public Sub DoStuff()
MessageBox.Show(String.Format("Some Count = {0}", Me.SomeCount.ToString()))
End Sub
End Class// C# version.
public class TheClass
{
private int m_someCount;
public int SomeCount
{
get
{
return this.m_someCount;
}
set
{
this.m_someCount = value;
}
}
public TheClass()
{
this.SomeCount = 0;
}
public void DoStuff()
{
MessageBox.Show(string.Format("Some Count = {0}", this.SomeCount.ToString()));
}
}I'd say find either a C# Windows Forms book or a C# ASP.NET book (depending on if you want to do desktop or web work). And once you are comfortable with C#, then maybe get a WPF book.
Chris Maunder wrote:
Fixign now.
But who's fixing the fixign?
-
Hi all. As someone who has been with VB through all its various forms I would now like to stretch the 'little grey cells' by learning C#. Do you need to know C or C++ to succeed with C#? Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language? Cheers.
One more thing. If you are into making games, you might want to read an XNA book.
Benjamin Breeg wrote:
online resources
I'm sure there must be a few Code Project articles related to C# that would interest you. For example, "Quick C#" seems to cover the basics, though it doesn't cover some of the syntax in the new versions of C#. It also leaves out some of the advanced stuff, like generics and LINQ. A book would probably be better if you want more comprehensive coverage.
Chris Maunder wrote:
Fixign now.
But who's fixing the fixign?
-
OriginalGriff wrote:
and you don't wonder where the pointers have gone!
They have gone into
unsafe
blocks :)And there they will stay! Despite the whole language using them for everything and hiding it from view... :laugh:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
Hi all. As someone who has been with VB through all its various forms I would now like to stretch the 'little grey cells' by learning C#. Do you need to know C or C++ to succeed with C#? Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language? Cheers.
Benjamin Breeg wrote:
someone who has been with VB through all its various forms
Sorry for your luck.
Benjamin Breeg wrote:
Do you need to know C or C++ to succeed with C#?
Not necessarily, but it helps. If you know vb.net you already know the .net namespaces so learning the c# syntax is all that is left.
Benjamin Breeg wrote:
Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language?
C# Corner[^] MSDN C# Toutorials[^] MSDN C# Walkthroughs[^] and, of course Code Project C# forum[^] C# syntax will be a little strange at first, but stick with it. After a while you will look at vb.net as being the strange way of doing things.
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes -
No - you can (and many do) learn C# as the first programming language. In many ways, not knowing C or C++ can be an advantage and you don't wonder where the pointers have gone! If you are used to VB in it's .NET form then it is mostly a case of adding semicolons, and being less verbose! You could do a lot worse than to pick up a copy of Rob Miles C# Yellow Book[^] - it's free and is the text tat Hull University use to teach beginners. But, if it doesn't suit you, get any Wrox or Apress: just avoid anything with "in 7 days" or exclamation marks in the title!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
Welcome!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
Benjamin Breeg wrote:
someone who has been with VB through all its various forms
Sorry for your luck.
Benjamin Breeg wrote:
Do you need to know C or C++ to succeed with C#?
Not necessarily, but it helps. If you know vb.net you already know the .net namespaces so learning the c# syntax is all that is left.
Benjamin Breeg wrote:
Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language?
C# Corner[^] MSDN C# Toutorials[^] MSDN C# Walkthroughs[^] and, of course Code Project C# forum[^] C# syntax will be a little strange at first, but stick with it. After a while you will look at vb.net as being the strange way of doing things.
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopesThanks for taking the time to provide the info; much appreciated. I have coded with vb.net and someone very thoughtfully provided a small prog in vb and C# to compare. So it seems to me that you're correct in saying that it's just a case of learning the new syntax judging by the differences between the two provided code samples. Cheers.
-
Benjamin Breeg wrote:
As someone who has been with VB through all its various forms
Including VB.NET? If so, then C# will be very easy to learn, considering it uses the same base library as VB.NET (.NET Framework). Here is the same code snippet in each language for comparison:
' VB.NET version.
Public Class TheClass
Private m_someCount As Integer
Public Property SomeCount As Integer
Get
Return Me.m_someCount
End Get
Set(value As Integer)
Me.m_someCount = value
End Set
End Property
Public Sub New()
Me.SomeCount = 0
End Sub
Public Sub DoStuff()
MessageBox.Show(String.Format("Some Count = {0}", Me.SomeCount.ToString()))
End Sub
End Class// C# version.
public class TheClass
{
private int m_someCount;
public int SomeCount
{
get
{
return this.m_someCount;
}
set
{
this.m_someCount = value;
}
}
public TheClass()
{
this.SomeCount = 0;
}
public void DoStuff()
{
MessageBox.Show(string.Format("Some Count = {0}", this.SomeCount.ToString()));
}
}I'd say find either a C# Windows Forms book or a C# ASP.NET book (depending on if you want to do desktop or web work). And once you are comfortable with C#, then maybe get a WPF book.
Chris Maunder wrote:
Fixign now.
But who's fixing the fixign?
-
Thanks for taking the time to provide the info; much appreciated. I have coded with vb.net and someone very thoughtfully provided a small prog in vb and C# to compare. So it seems to me that you're correct in saying that it's just a case of learning the new syntax judging by the differences between the two provided code samples. Cheers.
Yes it is just syntax once you are familiar with the .net foundation. You'll find C# to be much less writing so you can concentrate on what it is you are trying to accomplish. You'll get used to it is a short time.
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes -
Hi all. As someone who has been with VB through all its various forms I would now like to stretch the 'little grey cells' by learning C#. Do you need to know C or C++ to succeed with C#? Do you have any recommendations for books or online resources that would really help a novice to get to grips with this language? Cheers.
I haven't read the book, but the man is a genius, so I will recommend Job Skeet's C# In Depth.