我有一个int数组,例如{1,2,3,4}值.
我想将这些数字放入例如我的列表框中:
listBox2.Items.Add("After Inserting (" + page[i].ToString() + ')' + <use all my numbers like this : 1234 here>+"Page Fault = " + pf.ToString());
Run Code Online (Sandbox Code Playgroud)
输出:
After Inserting (3) 1234 page fault = 5
Run Code Online (Sandbox Code Playgroud)
1234只是一个例子.我的阵列要大得多.
我怎么能在c#中做到这一点?
c# ×1