This is fifth chapter from the course - C# and .NET For Beginners.
This chapter begins with discussing the exercises from previous chapter. Then it discusses the concept of type conversion. It shows two different ways to perform type conversions - using either type casting or using helper class.
Both implicit and explicit typecasting has been explained in this chapter. This chapter also shows how to use Parse, TryParse and ParseExact methods from the types.
This chapter covers converting values from string to numeric types, from string to date time or date only or time only types, etc.
It also throws light on 3 different methods to accept inputs from the user - Console.ReadLine, Console.Read and Console.ReadKey. It also explains difference between these three methods. In addition, there is discussion about how to change background and font colors.
Finally, we will create a program to demonstrate these concepts.
The chapter also tries to explain the basic difference between value types and reference types.
-------------------------------------------------------------------------------------------
Let's Connect on:
Blog - https://thecodeblogger.com/
Twitter - / choudhari_manoj
GitHub - https://github.com/manoj-choudhari-git
-------------------------------------------------------------------------------------------
Make sure to SUBSCRIBE to the channel. A Big THANK YOU for helping me grow this channel !!