摘要:
public static bool FindAndKillProcessByName(string name) { //Parameter check if (0 == name.Length) { return false; } //Find the named process and terminate it foreach (Process winProc in Process.GetProcesses()) { //use equals for the task in case we kill //a wrong process if (winProc.ProcessName... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;using System.Threading;namespace ThreadApp{ class Program { private static int item = 0; [STAThread]//该特性一般用来标志程序的入口函数,对于一般的方法设置没有任何的影响,如下面输出的结果 private static void D... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Dynamic;//添加引用命名空间namespace ConTest{ class Dynamic { public static void Main() { dynamic person = new ExpandoObject(); person.Name = "ganquanfu"; person... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespace EditCell{ public partial class EditCell : UserControl { private string txtValue; ... 阅读全文