???????????
???????????????
???????????????????
???????c#?е????
????????????
???????????????
????????????????????????ù????????c#?ж?????????????????
????C# 1.0?У?
????public delegate string DynamicFunction(string name);
????public static DynamicFunction GetDynamicFunction()
????{
????return GetName;
????}
????static string GetName(string name)
????{
????return name;
????}
????var result = GetDynamicFunction()("mushroom");
????3.0д???????????????????????? ??????????????????????????????????ú???????????
????char GetName(char p);
????typedef char (*DynamicFunction)(char p);
????DynamicFunction GetDynamicFunction()
????{
????return GetName;
????}
????char GetName(char p)
????{
????return p;
????};
????char result = GetDynamicFunction()('m');
?????????????c# 1.0???????????(????/?????)???????????????
????C# 2.0?У???????????????
????public delegate string DynamicFunction(string name);
????DynamicFunction result2 = delegate(string name)
????{
????return name;
????};
????C# 3.0?У?????Lambda????????????????
????public static Func<string?? string> GetDynamicFunction()
????{
????return name => name;
????}
????var result = GetDynamicFunction()("mushroom");