Your question is rather obscure, but you can certainly use expression trees to dynamically create delegates at runtime. (There are other ways to do this, such as CodeDOM, but expression trees are more efficient if they do everything you need. However, there are significant limitations on what you can do.)
It is often easier to use a lambda expression with some captured variables.
For example, to create a function that adds the specified amount to any integer, you can write:
static Func<int, int> CreateAdder(int amountToAdd) { return x => x + amountToAdd; } ... var adder = CreateAdder(10); Console.WriteLine(adder(5));
If this does not help, clarify your question.
Jon skeet
source share