Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

C Sharp Course 101.5

5,505 views

Published on

Updated version of C# Crash Course for college students and any beginner who wants to learn the popular language. (Beginner - Intermediate)

Published in: Technology

C Sharp Course 101.5

  1. 1. Beginner - Intermediate WakeUpAndCode.com @shahedC
  2. 2. Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  3. 3. Period Background/Experience 1997 – present Microsoft web/software development 2011 XNA games on XBLIG for Xbox 360 • 2D Math Panic • Angry Zombie Ninja Cats 2012 Tools for XNA developers • XBLIG Sales Data Analyzer (OnekSoftLabs.com) • XNA Basic Starter Kit (CodePlex) Online: http://facebook.com/OnekSoftGames
  4. 4. Period Background/Experience 2013 • Ninja Cat Runner on Win8, WP8, Web (Construct 2) • Video Q&A with MS Tech Evangelist Frank La Vigne • Founder/Admin of FB groups: Construct2, Xbox One & Unity Indie Devs • Started Public Speaking in DC area and East Coast 2014 • Public Speaking on Indie Game Development • Joined Microsoft as a Sr. Technical Evangelist • Gallant Glider on Win8, WP8, Web (Construct 2  Universal App) Video Q&A: http://youtu.be/lRjrQPvVOpo MVA: http://aka.ms/DevGames-Const2
  5. 5. Source: Official Xbox Magazine, March 2014, Page 65 `
  6. 6. http://www.visualstudio.com/downloads
  7. 7. http://www.visualstudio.com/products/visual-studio-community-vs http://aka.ms/vs2013ce
  8. 8. References Properties Panel Code Editor Toolbar Solution Explorer Ouput Start (Run)
  9. 9. http://www.dotnetspark.com/tutorialpic/clr.png
  10. 10. Start/Continue
  11. 11. Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  12. 12. using statements Method ( ) class Variables Data Types • Integer • String • var? Assignment Output namespace // 1-line comment /* multi-line comments */
  13. 13. Type Operators Unary Postfix Operators ++ -- Unary Prefix Operators ++ -- + - Multiplicative Operators * / % (modulus) Additive Operators + - Assignment Operators = lower higher
  14. 14. Type Operators Equality == != Logical AND & Logical XOR ^ Conditional AND && Conditional OR || Conditional Ternary Operator ?:
  15. 15. Declare & Assign StringBuilder Special Characters Literal Concatenate string.Format() Char Array String Functions
  16. 16. for loop while loop continue break switch-case statements default break if/else blocks
  17. 17. 1 3 2
  18. 18. Instance variable properties constructors public method private methods (overloaded) class declaration this keyword
  19. 19. parent class complex object public method private variable
  20. 20. 1 3 2
  21. 21. 1 2 3
  22. 22. Set to enter sample data “Copy always”
  23. 23. Use System.IO namespace for StreamReader Handle possible exceptions with try-catch block
  24. 24. Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  25. 25. name of enum initialization not required enum keyword }
  26. 26. initialization if-else check } } initialization switch-case check
  27. 27. static class static method data type matches extended class e.g. string this keyword before first parameter
  28. 28. data type to be extended call extension method just like Instance method
  29. 29. placeholder within < angle brackets > right after method name placeholder used for one or more parameters
  30. 30. actual data type, e.g. <int> within < angle brackets > in place of placeholder a different data type!
  31. 31. Declare Lists of different types e.g. <string> and <int> } add values individually } add multiple values at once (separated by commas)
  32. 32. iterate through values using foreach loops
  33. 33. Two data types <int, string> for key-value pairs Initialize multiple values (separated by commas) Initialize individually
  34. 34. retrieve value, using [key] in square brackets
  35. 35. initialize number array retrieve contents
  36. 36. similar to SQL dot-notation e.g. myNums.Where() => “goes to” syntax for input into expression
  37. 37. http://www.microsoftvirtualacademy.com/training-courses/ c-fundamentals-for-absolute-beginners http://www.microsoftvirtualacademy.com/training-courses/ developer-training-with-programming-in-c
  38. 38. http://nunit.org/index.php?p=quickStart&r=3.0
  39. 39. note public method
  40. 40. call public method assert returned result pass in input parameters and expected result
  41. 41. https://www.jetbrains.com/resharper/download/
  42. 42. Email: shchowd@microsoft.com  Twitter: @shahedC

×