c#delegate Nov 13, 2019 How do I assign C# code to a variable? Did you know most languages have a way to pass around code to other functions, so you can call (invoke) it in other parts of your application? In C#, it's called a delegate. Read more Share