Lesson 16: Converting Data from One Type to Another in C#
This lesson illustrates how to convert one data type to another data type. You learn about the cast operator as well as implicit and explicit conversions.
Content
How Numeric Conversions Work and Implicit Conversions 00:00
DEMO: Integer to Decimal Conversion 01:29
DEMO: Decimal to Integer Conversion 02:00
DEMO: Decimal to Float Conversion 04:09
DEMO: Strings to Integer 05:38
DEMO: Strings to Decimal 06:40
DEMO: Using int.TryParse 06:54
DEMO: String to DateTime 07:55
DEMO: Number to String 09:31
Lesson Summary 10:29
You can get all the samples and hands-on labs for this course at https://www.pdsa.com/YouTube.
Numeric Conversion Chart
https://bit.ly/3MpTAXN
#dataconversion #programming #csharp #dotnet #dotnetcore #dotnet6 #dotnet7 #dotnet8 #pauldsheriff #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff