C# Fundamentals: Development for Absolute Beginners

Operators, Expressions and Statements Duration - 07

Download this episode

Download Video

Download captions

Download Captions

Description

In this lesson, we discuss how to create a properly formed C# statement. As with any language, there's a "right way" and a "wrong way" to write "complete thoughts" in C#. We discuss how statements are made up of expressions, and how expressions are made up of operators (think: verbs) and operands (think: nouns). Finally, we talk about compilation errors that occur when the syntax rules of C# are ignored.

Download the source code for Operators, Expressions and Statements Duration

 

Tags:

C#, visual stuido

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • EmW

      Again, awesome and thank you. You are allowing me to finally understand how to code, i love your approach

    • BobTabor

      @EmW:  Awesome, glad it's working for you!

    • Lotfinejad

      Download links are broken!

    • Duncanma

      @Lotfinejad: They are all working for me... which specific link is failing for you? Two troubleshooting ideas:

      1. Can you do a tracert to video.ch9.ms to see what the results are?
      2. Can you try hitting the same link, but media.ch9.ms instead of video.ch9.ms?

      Thanks

    • Lucien

      This series is awesome. I've already watched several tutorials by different authors, covering the same content... but these videos are much more descriptive and easier to understand.

      Offhand, I have a question relating to the past few videos...

      Is it possible to check and see if a user input is equal to /any/ variable in a class or method? I imagine I could type the variables out one by one, but it would be much easier to just check the input against all previously defined variables within a class or method.

      If (userInput == Program.Variables.(anyvariabledefined))  or something like that.

       

    • Zafar

      The link is broken. Cant watch the video neither can download.

    • BobTabor

      @Lucien: That's a great question ... to my knowledge, there's nothing like that available.  I can see where that would be handy.

    • DanWoodcock

      Bob,

      Thank you so much! I have watched your vb videos as well. Your videos are a great resource for learning. You are the man.

    • BobTabor

      @DanWoodcock:  Smiley  Thanks, always wanted to be "the man".  Seriously though, glad these worked for you Dan.

    • Deniz

      Bob, you really are the best! I was struggling trying to find a good source to start learning. There really is none. And I really can't spend thousands of dollars for learning this. Internet is full of lessons that made no sense to me.

      Also even though English is not my native language, it isn't even a bit hard to understand you.

      Thank you for all and I will try to follow your work. Hopefully.

    • Harish

      Hello Bob,

      Awesome video tutorials, I have learned a lot. Thank you very much for your strain in giving out the best in you. Please provide us with the other tutorials on other technologies.

      Also, This video link is broken for both watching and downloading. Please verify it.

      Thanks. :)

    • Harish

      Hello Bob,

      Awesome video tutorials, I have learned a lot. Thank you very much for your strain in giving out the best in you. Please provide us with the other tutorials on other technologies.

      Also, This video link is broken for both watching and downloading. Please verify it.

      Thanks. :)

    • BobTabor

      @Deniz: Great to hear this worked for you.  Thanks for the kind words!

      @Harish: Thank you.  Other videos are on their way.  Also, I was able to download and watch this video just now.  All links seem to work.  Perhaps a temporary outage?

    • chidi

      Thanks alot Bob.I would like to buy the complete CD,how can i get them?

    • Michael

      This videos saved my life, thank you Bob ^_^

    • Tony B

      @Lucien

      I think what you are asking for can be achieved using Reflection:

      http://msdn.microsoft.com/en-us/library/xdtchs6z.aspx

      Tony

    • Syed Moinudin

      Sir Thank you very much..
      I Dont Know How To Say Thank,s ....Lot of Thank,s sir

    • George

      I thought i'd try out using what I learned from you so far and i'm having a bit of trouble. on line 22 I try to convert a string into an integer but when I debug it stops at that line and doesn't continue. What am I doing wrong?

      here is what I have

      http://i882.photobucket.com/albums/ac22/xGE0RG3XD/problem.png

    • BobTabor

      @George: Try removing the Console.Readline() in line 19.  You're doing it twice.  That means the SECOND time you hit enter, you're not sending in any value (null), and so int.Parse(null) will cause the app to break.  Hope that helps!

    • Supensaa

      Another great video! I love switching between a few of the kindle books I bought + music...then when I get tired of reading I come to your videos! Great work, much appreciated.

    • Mohd

      Bob... what is (( and )) meant for?

    • salman

      bob, the videos are great just from the point of view of downloading you have uploaded the files in very high resolution that's why their size are very heavy and it takes so much time while downloading.
      will appreciate if you could put the compressed videos or in other formats which are comparatively lighter.

      thanks

    • pastorjack

      Excellent tutorial; I am starting to think through some of the code syntax.

      Thanks!

    • martin

      in the OR operator what symbol was it?? ((x == x) ?? (x == x))

    • rajat patel

      Hello sir Bob !! the series is awesome.... n its very helpfull really......i hv downloaded all ur serieses bt this particular video is not getting downloaded..... help me sir plz..... i need this video asap to complete my study of the whole series..... help me soon sir !!

    • Matt

      Hello Bob,

      I am attempting to download the whole series for offline viewing but unfortunately this link appears to be broken.

      Thanks

    • Tajminur Rahman

      Hey Bob,
      Awesome effort. C# was giving me a very hard time and deep down in my heart I was hopeless. Then,suddenly I just saw your videos and guess what, I am back on C# again !
      Thank u Sir.

    • Tajminur Rahman

      Hey Bob,
      Awesome effort. C# was giving me a very hard time and deep down in my heart I was hopeless. Then,suddenly I just saw your videos and guess what, I am back on C# again !
      Thank u Sir.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.