Lecture overview -- Keyboard shortcut: 'u'  Previous page: Expressions and Operators -- Keyboard shortcut: 'p'  Next page: Control Structures for Selection -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 29 : 43
Object-oriented Programming in C#
Introduction to C#
Expressions and Operators

  • Operator Precedence

    • Major differences between the two languages

 

  • Equality and Assignment

    • VB: Suffers from the choice of using the same operator symbol = for both equality and assignment

    • VB: The context determines the meaning of the operator symbol =

    • C#: Separate equality operator == and assignment operator =

  • Remarkable operators

    • VB: Mod, &, \, And, AndAlso, Or, OrElse

    • C#: ==, !, %, ?: