Creating Secure C# Code


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
During this course, you'll explore techniques that help you secure your C# code, and a number of best practices. You'll begin by learning how to safely connect strings and apply common data validation techniques for C# applications. Next, you will identify why casting in the C# style is preferred to the C style. From there, learn how to recognize proper C# operator overloading, and how to follow the correct way to access internal class data. Other topics include working with loops, and understanding why for-loops are preferred to while-loops. Other topics include how to study concise, focused, readable C# function examples; how to identify the best way to use references and pointers. Finally, as a review exercise, you will create a C# application that casts correctly, uses proper data validation, and offers concise functions and methods.

Target Audience
Individuals interested in learning the fundamental concepts of secure programming, or experienced programmers wishing to refresh or improve their skills. Previous programming experience with C/C++ or .NET may be beneficial.

Prerequisites
None

Expected Duration (hours)
0.8

Lesson Objectives

Creating Secure C# Code

  • start the course
  • recognize how to properly interface with data in C#
  • demonstrate some common data validation techniques employed to create secure C# applications
  • identify why casting in theC# style is preferred to the C style
  • recognize how to properly use operator overloading in C#
  • identify the correct way to access internal class data
  • describe why for-loops are preferred to while-loops
  • recognize how to keep functions focused and concise
  • identify the best way to use references and pointers and why you should avoid raw pointers
  • recognize the importance of good readability for planning and maintaining code
  • use defensive coding techniques to create a secure C# application
  • Course Number:
    sd_secp_a04_it_enus

    Expertise Level
    Intermediate