#30 Overriding ToEquals - C# Tutorials for Beginners | CoffeeNCode
Автор: CoffeeNCode
Загружено: 2022-09-01
Просмотров: 250
Описание:
How to override the ToEquals function in Visual Studio using C#!
🎓C# Ultimate masterclass course with tasks & projects - 73% off! ⬇️
https://csharp.codewithaba.com/udemy
💖 Become a Patron: Show support & get perks!
/ coffeencode
💻 Community Discord server
/ discord
When you join the server, you can get your own personal help channel for FREE where you can post anything you're stuck with and I will help you 😊
☕ Buy me a Coffee
https://ko-fi.com/coffeencode
https://www.buymeacoffee.com/coffeencode
Overriding the ToEquals function is really powerful as you can create the function to use in multiple places and its all within the class, so as you build out more features & fields you can update the class and it won't break any references to the function you have made previously.
Hardcoding the check will ensure your code is not maintainable as you'll have lots of locations you'll need to change to be able to keep your code functioning correctly. Using ToEquals gives you maximum flexbility in producing error free code!
📣 Socials
/ codewithaba
/ codewithaba
Timestamps:
0:00 Intro
0:10 Example
0:34 Initial setup
2:07 Custom ToEquals()
8:21 Understanding
9:08 Recap and Explanation
9:55 Outro & Patreon shoutout
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: