In this video tutorial you will learn about implicit and explicit conversion in C#.
The "implicit" keyword is used to declare an implicit user-defined type conversion operator. Use it to enable implicit conversions between a user-defined type and another type, if the conversion is guaranteed not to cause a loss of data.
The explicit keyword declares a user-defined type conversion operator that must be invoked with a cast.
The following example defines the operator that converts from a Fahrenheit class to a Celsius class. The operator must be defined either inside a Fahrenheit class or a Celsius class
In the course following this video you will learn everything you need to know about c# development. You will become a real csharp programmer.
This contains the basics of c# of course, but also loads of advanced features.
WPF (Windows Presentation Foundation)
OOP (Object Oriented Programming)
Databases in C#
Linq
Making Videos games with Unity 3D
and much more.
If you want to have the full course with all videos, quizzes, challenges, source code and projects
Tips:
1. Here is the playlist of this series:
2. If you want to learn faster than I talk, I’d recommend 1.25x or 1.5x speed :)
3. Have fun! If anything is unclear, please let me know in a comment.


0 Comments