???C#?????????????
???????????? ???????[ 2015/3/5 11:28:29 ] ????????C# ??????? ????????
???????????
???????????????
???????????????????
???????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");
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11