C# 如何释放委托
private delegate string PhoneDelegate(Dictionary<string, string> dic);
return PhoneDataHandler(new PhoneDelegate(UsersInfo.Login), phonestr);
private string PhoneDataHandler(PhoneDelegate pd ,string datastr)
{
if (!string.IsNullOrEmpty(datastr))
{
datastr = EncryptHelper.AESDecrypt(datastr);
datastr = pd(JsonHelper.ConvertJsonToDic(datastr));
datastr = EncryptHelper.AESEncrypt(datastr);
}
return datastr;
}
[解决办法]
clr帮你做了垃圾回收吧
[解决办法]