C# Extension Methods @Tarodev
C# Extension Methods  @Tarodev
Uploaded December 2021 | Updated September 2026, 2 weeks ago
Extension methods grant you the ability to extend classes you might not own without deriving from the class or modifying the original type. Add methods to any class and access them like you would any native instance method.

Perfect for extending base unity types, like Vector and SpriteRenderer.



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

=========

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


0:00 What are extension methods?
1:00 Our first extension method
3:10 Extending the list class
5:43 Extending the string type
7:00 Extension method call priority
9:15 Useful extension methods
C# Extension MethodsSprite Shadows in Unity - Cast and receive shadows using a SpriteRendererLINQ + Lambda expressions - C# tutorialObject References in Unity - How to Communicate Between ScriptsCreate a grid in Unity - Perfect for tactics or turn-based games! Part 2How to setup Global Matchmaking for UnityResponsive Camera Design in UnityUnity ragdolls! Make your characters floppy ;)Pathfinding - Understanding A* (A star)Create a server for your Unity game using .NET Core2D follow AI with Unity - [Tutorial]Create a grid in Unity - Perfect for tactics or turn-based games!
Tarodev |

C# Extension Methods

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER