MENU

Fun & Interesting

C# Generics - The complete guide

Tarodev 44,677 lượt xem 3 years ago
Video Not Working? Fix It Now

C# generics allow users to define classes and methods with a placeholder type. This provides amazing code re-usability while still retaining type safety.

In this video, I'll teach you what generics are, how to use them and provide a few real-world use cases to get your head around them.

I use game-like examples so you can see how you would use generics in your Unity development 🎮


❤️ Become a Tarobro on Patreon: https://www.patreon.com/tarodev

=========

🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6
🗨️ DISCORD: https://discord.gg/tarodev
✅ MORE TUTORIALS: https://www.youtube.com/tarodev


0:00 What are generics
1:20 Writing a generic class
11:36 Generic Type creation
15:13 Generics and Interfaces

Comment