我有一个名为memory的调试工具的问题.我打开这个工具调试工具→
Windows→内存→内存1.
这是我的全部代码:
using System; using System.Windows.Forms; namespace CSharpCompleteTutorial { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public delegate decimal Hesaplama(int adet); private void Form1_Load(object sender,EventArgs e) { Hesaplama del = Fiyat; del += KDVFiyat; MessageBox.Show(del.Invoke(5).ToString()); } public decimal Fiyat(int sayi) { return sayi * 10.5m; } public decimal KDVFiyat(int sayi) { decimal kdvharicfiyat = sayi * 10.5m; return kdvharicfiyat + kdvharicfiyat * 0.18m; } } }
我必须使用简单的记忆工具.但它使我像图像中的错误.