How to create Extension Methods and Method Chaining in C# and Unity
Extension methods add functionality to classes beyond their initial scope. You can extend your own systems or systems that you do not control.
Method chaining is a technique that allows calling several methods or functions on the same object or class in easy to read format.
In this video, we’ll see how to create extension methods and write them in a way that allows method chaining.