Programming C# 6, (Part 10 of 12): Classes and Methods
Interactive

Programming C# 6, (Part 10 of 12): Classes and Methods

BizLibrary
Updated Feb 04, 2020

In this course, visual studio expert Don Kiely teaches you the techniques needed to build sophisticated classes in your code. Using a sample customer class, he will demonstrate how to validate property values and also explore automatic properties as well as advanced method techniques such as parameter arrays.


Lesson 1:

  • Sample Customer Class
  • Demo: Class Properties
  • Demo: Write & Read Properties
  • Demo: Location Property
  • Demo: Calculated Property Value
  • Demo: Annual Sales Property
  • Demo: Changing Values.

Lesson 2:

  • Demo: Automatic Properties
  • Demo: Backing Fields
  • Demo: Initializers
  • Getter-Only Auto-Properties
  • Demo: Read-Only Auto-Property.

Lesson 3:

  • Methods
  • Parameters and Return Values
  • Passing Arguments to Methods
  • Demo: Pass Parameters
  • Demo: Pass by Reference
  • Demo: Pass with Out.

Lesson 4:

  • Demo: Flexible Parameters
  • Demo: Named Parameters
  • Caller Information Attributes
  • Demo: Caller Info Attributes.

Lesson 5:

  • Methods in Classes
  • Class Constructors
  • Demo: Constructors.

Lesson 6:

  • Demo: XMLWriter
  • Demo: SaveCustomer
  • Demo: GetCustomerInfo
  • Demo: GetLocation.

Lesson 7:

  • Demo: Parameter Array
  • Demo: Variable-Length Array
  • Demo: Pass Parameter Array.

Lesson 8:

  • Demo: Static Variables
  • Demo: RecordSales
  • Demo: GetCustomerName.

Lesson 9:

  • Lambda Expressions
  • Demo: Expression-Bodied Method
  • Demo: Refinements
  • Demo: Using Lambda Expressions.
;