Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Microsoft

Work with variable data in C# console applications (Get started with C#, Part 4)

Microsoft via Microsoft Learn

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
  • Choose the correct data type for your code from several basic types used in C#.
    • Learn the fundamental differences between value types and reference types.

    • Describe the properties of many new numeric data types, including new integral types and floating-point types.

    • Write code that returns the maximum and minimum values that numeric data types can store.

    • Use the new keyword to create new instances of a reference type.

    • Determine which data type you should choose for a given application.

  • Explore using C# techniques for casts and conversions.
    • Use the casting operator to cast a value into a different data type.

    • Use conversion methods to convert a value into a different data type.

    • Guard against the loss of data when performing a cast or conversion operation.

    • Use the TryParse() method to safely convert a string into a numeric data type.

  • Use C# helper methods to perform reverse, resize, split and join operations on arrays.
    • Sort and reverse the order of array elements.

    • Clear and resize the elements of an array.

    • Split a string into an array of strings or characters (chars).

    • Join array elements into a string.

  • Explore basic methods in C# to format alphanumeric data.
    • Use character escape sequences to add tabs, new lines, and Unicode characters to our strings.

    • Create verbatim string literals, and escape common characters like backslash ( \ ) and double-quotes ( "" ).

    • Merge templates with variables using composite formatting and string interpolation.

    • Include various format specifiers for percentages, currency, and numbers.

  • Explore using the built-in string data type methods in C# to modify strings.
    • Identify the position of a character or string inside of another string.

    • Extract portions of strings.

    • Remove portions of strings.

    • Replace values in strings with different values.

  • Complete a guided project to apply knowledge of variable data in C#.
    • Apply iteration statements to gather data input.

    • Use data processing.

    • Format data output.

    • Choose the correct data types and safely convert data types.

    • Manipulate number, string and character arrays, as well as add, remove, and sort data.

    • Modify and build complex strings from multiple data sources, and format data for display across regions.

  • A challenge project to test C# skills working with variable data.
    • Apply iteration statements using data input.

    • Process data.

    • Format data output.

    • Choose the correct data types and safely converting data types.

    • Create and manipulate string arrays, and sort array data.

    • Modify and build complex strings from multiple data sources, and format data for display.

Syllabus

  • Choose the correct data type in your C# code
    • Introduction
    • Discover value types and reference types
    • Exercise - Discover integral types
    • Exercise - Discover floating-point types
    • Exercise - Discover reference types
    • Choose the right data type
    • Module assessment
    • Summary
  • Convert data types using casting and conversion techniques in C#
    • Introduction
    • Exercise - Explore data type casting and conversion
    • Exercise - Examine the TryParse() method
    • Exercise - Complete a challenge to combine string array values as strings and as integers
    • Review a solution for combining string array values as strings and as integers challenge
    • Exercise - Complete a challenge to output math operations as specific number types
    • Review a solution for the output math operations as specific number types challenge
    • Module assessment
    • Summary
  • Perform operations on arrays using helper methods in C#
    • Introduction
    • Exercise - Discover Sort() and Reverse()
    • Exercise - Explore Clear() and Resize()
    • Exercise - Discover Split() and Join()
    • Exercise - Complete a challenge to reverse words in a sentence
    • Review a solution to the reverse words in a sentence challenge
    • Exercise - Complete a challenge to parse a string of orders, sort the orders and tag possible errors
    • Review a solution to parse a string of orders, sort orders and tag possible errors
    • Module assessment
    • Summary
  • Format alphanumeric data for presentation in C#
    • Introduction
    • Exercise - Investigate string formatting basics
    • Exercise - Explore string interpolation
    • Exercise - Discover padding and alignment
    • Exercise - Complete a challenge to apply string interpolation to a form letter
    • Review a solution to string interpolation
    • Module assessment
    • Summary
  • Modify the content of strings using built-in string data type methods in C#
    • Introduction
    • Exercise - Use the string's IndexOf() and Substring() helper methods
    • Exercise - Use the string's IndexOf() and LastIndexOf() helper methods
    • Exercise - Use the Remove() and Replace() methods
    • Exercise - Complete a challenge to extract, replace, and remove data from an input string
    • Review the solution to extract, replace, and remove data from an input string
    • Module assessment
    • Summary
  • Guided project - Work with variable data in C#
    • Introduction
    • Prepare for guided project
    • Exercise - Review starter code
    • Exercise - Add suggested donation data
    • Exercise - Add dog search
    • Module assessment
    • Summary
  • Challenge project - Work with variable data in C#
    • Introduction
    • Prepare for challenge
    • Add multiple term search support
    • Exercise - Add improved search animation
    • Knowledge check
    • Summary

Reviews

Start your review of Work with variable data in C# console applications (Get started with C#, Part 4)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.