
NET技术
梁清锋
这个作者很懒,什么都没留下…
展开
-
上位机Bytes数组转Bool数组
bt为从输入寄存器中读出来的一个字节,8位。 转换成Bool数组在界面上做开关变量用bl。 byte[] bt = new byte[] { 0,1,0,1,0,0,0,1 }; bool[] bl;bl = Array.ConvertAll(bt, p => p == 1); //数组转换 lblBoolShow.Text = string.Join(",", bl);...原创 2021-12-20 22:50:07 · 2078 阅读 · 0 评论 -
C#字符串数组转整型数组(string,int),数组求最大、最小、平均值
private void button3_Click(object sender, EventArgs e) { ///txtNubers.Text="121,232,112,41,233,113,441,441,52,221" if (txtNumbers.Text.Trim() == "") return; string[] abc = txtNumbers.Text.Trim().Split(','...原创 2021-12-19 12:00:00 · 448 阅读 · 0 评论 -
[ASP.net初学者]数据库连接
//Test.aspx.cs页面内容如下,引用项添加System.Configuration的引用。using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Conf原创 2014-03-21 02:03:09 · 820 阅读 · 0 评论