Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. C# book or resource recommendation

C# book or resource recommendation

Scheduled Pinned Locked Moved The Lounge
learningcsharpc++helpquestion
14 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Ben Breeg

    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.

    A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #5

    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?

    B 1 Reply Last reply
    0
    • B Ben Breeg

      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.

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #6

      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?

      1 Reply Last reply
      0
      • D David1987

        OriginalGriff wrote:

        and you don't wonder where the pointers have gone!

        They have gone into unsafe blocks :)

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #7

        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."

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • B Ben Breeg

          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.

          J Offline
          J Offline
          JimmyRopes
          wrote on last edited by
          #8

          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

          B 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            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."

            B Offline
            B Offline
            Ben Breeg
            wrote on last edited by
            #9

            Thanks for the info. Rob Miles book is very good. Cheers.

            OriginalGriffO 1 Reply Last reply
            0
            • B Ben Breeg

              Thanks for the info. Rob Miles book is very good. Cheers.

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #10

              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."

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              1 Reply Last reply
              0
              • J JimmyRopes

                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

                B Offline
                B Offline
                Ben Breeg
                wrote on last edited by
                #11

                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.

                J 1 Reply Last reply
                0
                • A AspDotNetDev

                  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?

                  B Offline
                  B Offline
                  Ben Breeg
                  wrote on last edited by
                  #12

                  Thanks for providing the code samples. There doesn't appear to be a great difference between the two on the face of it, but I'm sure they'll be a few subtleties that'll catch me out. :laugh:

                  1 Reply Last reply
                  0
                  • B Ben Breeg

                    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.

                    J Offline
                    J Offline
                    JimmyRopes
                    wrote on last edited by
                    #13

                    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

                    1 Reply Last reply
                    0
                    • B Ben Breeg

                      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.

                      B Offline
                      B Offline
                      Brady Kelly
                      wrote on last edited by
                      #14

                      I haven't read the book, but the man is a genius, so I will recommend Job Skeet's C# In Depth.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups