Overview of C#
Programming
Pakorn Weecharungsan
Contents
 Overview of C#
 Variables
 Expressions and Operators
 Statements
 Arrays
 Classes and Methods
Overview of C# - A Simple C#
Program
Overview of C# - A Simple C#
Program
 Line 1 บอก Compiler ให้ทราบว่าโปรแกรมนี้มี
การใช้System namespace
 Line 3 ประกาศ n...
Overview of C# - Identifiers and
Keywords
Overview of C# - Identifiers and
Keywords
Overview of C# - Text Output from
a Program
 Write
 WriteLine
Overview of C# - The Format String
 Format
 Example
Overview of C# - Comments
Variables – Simple Types
Variables – Simple Types
Variables – Declarations
Variables – Initializers
Variables – Multiple Declarations
Expressions and Operators –
Simple Arithmetic Operators
 The Simple Arithmetic Operators
 Example
Expressions and Operators – The
Remainder Operator
 The Remainder Operator
 Example
Expressions and Operators – Rational
and Equality Comparison Operators
Expressions and Operators – Rational
and Equality Comparison Operators
Expressions and Operators –
Increment and Decrement Operators
Expressions and Operators –
Increment and Decrement Operators
Expressions and Operators –
Conditional Logical Operators
Expressions and Operators –
Conditional Logical Operators
Expressions and Operators –
Assignment Operators
Expressions and Operators –
Assignment Operators
Expressions and Operators – The
Conditional Operators
Expressions and Operators – The
Conditional Operators
Expressions and Operators – The
Conditional Operators
Expressions and Operators – The
Conditional Operators
Expressions and Operators –
Unary Arithmetic Operators
Statements – Flow of Control
 Conditional statements
 if
 if…else
 switch
 Looping statements
 while
 do
 for
 fo...
Statements – The if Statements
Statements – The if…else
Statements
Statements – The switch
Statements
Statements – The switch
Statements
Statements – The switch
Statements
Statements – The switch
Statements
Statements – The switch
Statements
Statements – The switch
Statements
Statements – The while Loop
Statements – The while Loop
Statements – The do Loop
Statements – The do Loop
Statements – The for Loop
Statements – The for Loop
Statements – The for Loop
Statements – The for Loop
Statements – The break Statement
 for
 foreach
 while
 do
Statements – The continue
Statement
 while
 do
 for
 foreach
Statements – The using Statement
Statements – The using Statement
Arrays
Arrays – Accessing Array Elements
Upcoming SlideShare
Loading in …5
×

D1 Overview of C# programming

416 views

Published on

Overview picture of C# programming language

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
416
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

D1 Overview of C# programming

  1. 1. Overview of C# Programming Pakorn Weecharungsan
  2. 2. Contents  Overview of C#  Variables  Expressions and Operators  Statements  Arrays  Classes and Methods
  3. 3. Overview of C# - A Simple C# Program
  4. 4. Overview of C# - A Simple C# Program  Line 1 บอก Compiler ให้ทราบว่าโปรแกรมนี้มี การใช้System namespace  Line 3 ประกาศ namespace ที่มีชื่อว่า Simple  Line 5 สร้าง class ที่มีชื่อว่า Program  Line 7 สร้าง method ที่มีชื่อว่า Main  Line 9 แสดงข้อความ “Hi There!” ออกทาง จอภาพ
  5. 5. Overview of C# - Identifiers and Keywords
  6. 6. Overview of C# - Identifiers and Keywords
  7. 7. Overview of C# - Text Output from a Program  Write  WriteLine
  8. 8. Overview of C# - The Format String  Format  Example
  9. 9. Overview of C# - Comments
  10. 10. Variables – Simple Types
  11. 11. Variables – Simple Types
  12. 12. Variables – Declarations
  13. 13. Variables – Initializers
  14. 14. Variables – Multiple Declarations
  15. 15. Expressions and Operators – Simple Arithmetic Operators  The Simple Arithmetic Operators  Example
  16. 16. Expressions and Operators – The Remainder Operator  The Remainder Operator  Example
  17. 17. Expressions and Operators – Rational and Equality Comparison Operators
  18. 18. Expressions and Operators – Rational and Equality Comparison Operators
  19. 19. Expressions and Operators – Increment and Decrement Operators
  20. 20. Expressions and Operators – Increment and Decrement Operators
  21. 21. Expressions and Operators – Conditional Logical Operators
  22. 22. Expressions and Operators – Conditional Logical Operators
  23. 23. Expressions and Operators – Assignment Operators
  24. 24. Expressions and Operators – Assignment Operators
  25. 25. Expressions and Operators – The Conditional Operators
  26. 26. Expressions and Operators – The Conditional Operators
  27. 27. Expressions and Operators – The Conditional Operators
  28. 28. Expressions and Operators – The Conditional Operators
  29. 29. Expressions and Operators – Unary Arithmetic Operators
  30. 30. Statements – Flow of Control  Conditional statements  if  if…else  switch  Looping statements  while  do  for  foreach  Jump statements  break  continue  return  goto  throw
  31. 31. Statements – The if Statements
  32. 32. Statements – The if…else Statements
  33. 33. Statements – The switch Statements
  34. 34. Statements – The switch Statements
  35. 35. Statements – The switch Statements
  36. 36. Statements – The switch Statements
  37. 37. Statements – The switch Statements
  38. 38. Statements – The switch Statements
  39. 39. Statements – The while Loop
  40. 40. Statements – The while Loop
  41. 41. Statements – The do Loop
  42. 42. Statements – The do Loop
  43. 43. Statements – The for Loop
  44. 44. Statements – The for Loop
  45. 45. Statements – The for Loop
  46. 46. Statements – The for Loop
  47. 47. Statements – The break Statement  for  foreach  while  do
  48. 48. Statements – The continue Statement  while  do  for  foreach
  49. 49. Statements – The using Statement
  50. 50. Statements – The using Statement
  51. 51. Arrays
  52. 52. Arrays – Accessing Array Elements

×