See that your provided code does not compile in for many reasons. To call the A and B methods you must properly call it with passing the parameters such like:
public static Func<DateTime, string> A = (date) => { return date.ToString(); };
public static Func<DateTime, string> B = (date) => { return date.ToString(); };
public static Func<DateTime, string> C = (date) => { return A(date) + B(date); };
static void Main(string[] args)
{
var date = DateTime.Now;
Console.WriteLine(C(date));
}
See that I also added static because without that you get the error:
A field initializer cannot reference the non-static field, method, or property Program.A
str1? What isstr2? Are you intendingAandBto be properties, or something else? Why have you not bothered with proper capitalization? What does this have to do with ASP.NET? (You're not using anything ASP.NET-specific in the code...) Please put more time into explaining your question clearly.