public StudentUpData(Wt fun, int istuid) { Str = null; InitializeComponent(); Fun = fun; Istuid = istuid; XGym(); txtName.ReadOnly = true; }
public StudentUpData(Wt fun, string selectID) { Str = null; InitializeComponent(); Fun = fun; SelectID = selectID; Istuid = -1; // sin = dbStudent.StudentInfo.Where(); }
static void Main(string[] args) { List <string> list = new List <string>(); list.Add("你"); list.Add("你怎么这样"); list.Add("你还要怎样"); list.Add("你猜啊"); list.Add("不猜"); list.Add("好吧"); list.Add("你怎么这样1111"); Console.WriteLine(list.FirstOrDefault(x => x == "你怎么这样")); list.RemoveAll(x => x == "好吧"); //Predicate foreach (var str in list) { Console.WriteLine(str); } string str1 = "Welcome To Tianjin Electronic Information College"; List <char> t = str1.Where(x => x >= 'A').ToList(); foreach (char i in t) { Console.Write(i); } Console.WriteLine(); Wt e = () => { Console.WriteLine("欢迎来到大电子"); };//局部变量和参数 e(); WtStr li = (str) => { List <string> lis = list.Where(x => x.Contains(str[0])).ToList(); foreach (string i in lis) { Console.WriteLine(i); } }; li(list); Console.ReadKey(); }
// public static Action Get { get; set; } static void Main(string[] args) { //StrChange(StrChangeD,"sadfsdfsdFGUUTFTYFYThgjutftyf");//大写 //StrChange(StrChangeX, "sadfsdfsdFGUUTFTYFYThgjutftyf");//小写 //StrChange(StrChangeS, "sadfsdfsdFGUUTFTYFYThgjutftyf");//双引 //StrFXwt<string> str = Showstring; //Console.WriteLine( str("你还要怎样,","不咋样")); // StrFXwt<int> i = Showint; // Console.WriteLine(i(20, 20)); Wt wt = ShowSting; wt(); Action ac = ShowSting; ac(); Console.ReadKey(); }
public static void ShowWt(Wt Get) { }