可以用來串字串
就不用判斷 是不是第一個 還是最後一個的功能
直接用就好了
不過他要用Array
string.Join(",", StringValue.ToArray())
程式筆記本 把所使用過的程式與電腦問題記錄下來 我想把這裡串成一本活字典
string.Join(",", StringValue.ToArray())
XElement XmlString;
var xmlLinq = (from a in XmlString.Elements("SetElement").Attributes("id")
select a.Value).ToList();
from a in Table1
join b in Table2 on a.id equals b.id into b2
from b22 in b2.DefaultIfEmpty()
select b22
dataGridView1.SelectAll();
if (this.dataGridView1
.GetCellCount(DataGridViewElementStates.Selected) > 0)
{
try
{
// Add the selection to the clipboard.
Clipboard.SetDataObject(
this.dataGridView1.GetClipboardContent());
}
catch (System.Runtime.InteropServices.ExternalException)
{
}
}
System.Diagnostics.Process ProcessRun = new Process();
ProcessRun.StartInfo.FileName = "cmd.exe";
//選擇執行程式OR CMD 如果要下程式則可打上路徑+程式名
ProcessRun.StartInfo.UseShellExecute = false;
ProcessRun.StartInfo.RedirectStandardInput = true;
ProcessRun.StartInfo.RedirectStandardOutput = true;
ProcessRun.StartInfo.CreateNoWindow = true;
ProcessRun.Start();
//ProcessRun.StandardInput.WriteLine("dir"); //下CMD指令
ProcessRun.StandardInput.WriteLine("exit"); //下CMD指令
ProcessRun.WaitForExit();
this.textBox1.Text = textBox1.Text + ProcessRun.StandardOutput.ReadToEnd(); //將結果SHOW出
ProcessRun.Close();
string script = "";
Page.ClientScript.RegisterStartupScript(typeof(Page), string.Empty, script);
$('#GVRowSelect').unbind("click");