C# : Why no compiler error when I cast a class to an interface it doesn't implement?

Channel:
Subscribers:
76,600
Published on ● Video Link: https://www.youtube.com/watch?v=p4JCDUaXg7U



Duration: 1:24
0 views
0


C# : Why no compiler error when I cast a class to an interface it doesn't implement?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

As promised, I have a secret feature that I want to reveal to you.
This is a YouTube's feature which works on Desktop.
First, Make sure this video is playing.
Then, type the letters 'awesome' on the keyboard.
Your YouTube progress bar will transform into a flashing rainbow.

A quick introduction about me,
Nice to meet you, I am Delphi.
Allow me to support you in answering your questions.
C# : Why no compiler error when I cast a class to an interface it doesn't implement?
If you need more specific information, let me know by leaving a comment or starting a chat.
Please feel free to leave a comment below if you have an answer or insights on the answer.
A 'heart' from me is a way of showing appreciation for your answer.
: to doesn't a compiler when implement? it I cast C# no error Why an class interface




Other Videos By Hey Delphi


2023-05-01HTML : DOM4: Deprecated properties and methods, what does it mean?
2023-05-01jQuery : How to set headers in ajax call with jquery
2023-05-01HTML : How to disable word breaking in CSS?
2023-05-01jQuery : How to create a child div that would wrap around all other child divs
2023-05-01Android : What is the correct way to specify dimensions in DIP from Java code?
2023-05-01C++ : Is it possible to fold only part of the pack with C++17 fold expressions?
2023-05-01SQL : What is best tool to compare two SQL Server databases (schema and data)?
2023-05-01jQuery : How to count table cells in a row with JQuery?
2023-05-01SQL : How to select a particular record and to set it to textView - Android SQlite
2023-05-01NodeJS : Is there a way to create a "stored procedure" call multi queries in single query at mongodb
2023-05-01C# : Why no compiler error when I cast a class to an interface it doesn't implement?
2023-05-01NodeJS : How to update each dependency in package.json to the latest version?
2023-05-01HTML : Is it possible to keyframe-css animate a div counter-clockwise over pi?
2023-05-01HTML : How to get border Around ul tag?
2023-05-01C# : How can I send emails through SSL SMTP with the .NET Framework?
2023-05-01HTML : how to use the br tag in email content?
2023-05-01jQuery : How to change input border-color, with jQuery, depending on its value?
2023-05-01C++ : Why does std::cbegin() not call .cbegin() on the container?
2023-05-01HTML : Where to specifiy the language of Document in HTML 5 when my page has two languages?
2023-05-01Windows : Why do my faked button presses fail with SendMessage?
2023-05-01Django : How to manage django'orm via aws redshift?