
功能实现
mihaw
正在从笔记中导入。。。。
展开
-
控制台应用程序设置管理员权限打开
控制台应用添加管理员权限打开原创 2022-10-21 16:47:27 · 516 阅读 · 1 评论 -
lambda GroupBy分组后再查询
var attendanceanddateList = attendanceList.Where(s => s.ProjectID == ProjictID).GroupBy(s => s.EnterArenaDate.ToString(“D”)).Select(s => new { name = s.Key, va=s.Where(c=>c.EnterArenaTemperature>37.2||c.EntranceTemperature>37.2).Select(z=原创 2021-07-13 16:14:44 · 1013 阅读 · 0 评论 -
gif 加载图标
原创 2020-08-27 13:16:03 · 419 阅读 · 0 评论 -
两个图片合一块 wpf
public static Bitmap CombinImage(Image imgBack图1, Image img图2, int xDeviation = 0, int yDeviation = 0){Bitmap bmp = new Bitmap(imgBack.Width*2画板宽, imgBack.Height画板高); Graphics g = Graphics.FromImage(bmp); g.Clear(Color.White); g.D原创 2020-08-13 13:47:55 · 326 阅读 · 0 评论 -
c# 两个list比较,将重复部分去掉
List A = new List();A.Add(“1”); A.Add(“2”); A.Add(“3”);List B= new List();B.Add(“1”); B.Add(“2”); B.Add(“4”);List C = new List();foreach (string item in A){if (!B.Contains(item)){C.Add(item);}}...原创 2020-08-12 17:03:19 · 2902 阅读 · 0 评论 -
Bitmap属性和方法
封装 GDI+ 位图,此位图由图形图像及其特性的像素数据组成。 Bitmap 是用于处理由像素数据定义的图像的对象。继承层次结构System.ObjectSystem.MarshalByRefObjectSystem.Drawing.ImageSystem.Drawing.Bitmap命名空间: System.Drawing程序集: System.Drawing(在 System.Drawing.dll 中)C#语法[SerializableAttribute][ComVisible转载 2020-08-01 17:35:13 · 1215 阅读 · 0 评论 -
遍历文件夹C#
List ls = new List();string path = @“E:”; DirectoryInfo dir = new DirectoryInfo(path); if (dir.Exists) { DirectoryInfo dirD = dir as DirectoryInfo; FileSystemInfo[] files = dirD.GetFileSystemInfos();原创 2020-08-01 15:00:57 · 111 阅读 · 0 评论 -
取字符串最后一个值
str = str.Substring(str.Length-1, 1);原创 2020-08-01 09:46:17 · 518 阅读 · 0 评论 -
.net读取txt文件
string[] pathtxt = File.ReadAllLines(E:\S234-JZ.txt);string pathtxt = File.Readtext(E:\S234-JZ.txt);原创 2020-07-31 16:01:40 · 1859 阅读 · 0 评论 -
C#如何判断字符串中是否包含什么字符
Name.Contains(“JZ”)原创 2020-07-31 15:59:36 · 940 阅读 · 0 评论 -
部署vue参数说明
? Project name 输入项目名称? Project description 输入项目描述? Author 作者? Vue build 打包方式,回车就好了? Install vue-router? 选择 Y 使用 vue-router,输入 N 不使用? Use ESLint to lint your code? 代码规范? Setup unit tests with Karma + Mocha? 单元测试? Setup e2e tests with Nightwatch? E原创 2020-06-29 13:14:19 · 232 阅读 · 0 评论 -
vs code 英文转中文界面
点击install从新打开就行原创 2020-06-29 11:44:16 · 179 阅读 · 0 评论 -
C#延迟执行
Thread.Sleep(3000);//三秒原创 2020-06-18 10:49:50 · 788 阅读 · 0 评论 -
使用EPPlus读写xlsx文件
读写excel文件有3种方法:1. 采用OleDB读取EXCEL文件2. 引用的com组件:Microsoft.Office.Interop.Excel3. 利用第三方库因为前2种方法都只能在windows平台下使用,虽然能够完成当前的需求,不过不利于自身的积累(笔者主要是跨平台开发为主),所以打算趁此机会了解一下读写excel的第三方跨平台库。因此进一步搜索读写excel的库,主要有:其中大部分的意见都认为“对于Excel 97-2003格式,还是用NPOI最好;而对于2007(xlsx)以上版转载 2020-06-18 10:49:16 · 1286 阅读 · 0 评论 -
wpf打开默认浏览器网址
private void button1_Click(object sender, EventArgs e){//调用系统默认的浏览器System.Diagnostics.Process.Start(“explorer.exe”, “https://blog.youkuaiyun.com/wei574768440”);}原创 2020-06-18 10:32:25 · 2408 阅读 · 0 评论 -
Linq查询操作之排序操作
转载 2020-06-16 08:58:45 · 180 阅读 · 0 评论 -
C#获取实体类属性名和值 | 遍历类对象
原创 2020-06-15 15:37:54 · 1088 阅读 · 0 评论 -
.NET Entity Framework(EF)使用SqlQuery直接操作SQL查询语句或者执行过程
转载 2020-06-15 15:35:14 · 692 阅读 · 0 评论 -
C#中三种定时器对象的比较
转载 2020-06-15 14:30:57 · 164 阅读 · 0 评论 -
.net如何获取当前的年月日
转载 2020-06-15 14:28:22 · 1389 阅读 · 0 评论 -
关于C#,ASP.NET 生成Excel表格的两种方式(Datatable转Excel)
转载 2020-06-15 14:27:19 · 241 阅读 · 0 评论 -
C# List 循环对象 并给属性赋值
转载 2020-06-15 14:26:29 · 4312 阅读 · 0 评论 -
Foreach 循环遍历
string[] arrs=new string[3]{“1”,“2”,“3”};List arrList=new List();foreach(string arr in arrs){arrList.add(arr);}原创 2020-06-15 14:19:30 · 499 阅读 · 0 评论 -
ASP.net 使用ConfigurationManager获取连接字符串
转载 2020-06-15 14:14:58 · 408 阅读 · 0 评论 -
asp.net Framework 中前后端如何传值
原创 2020-06-15 14:14:02 · 348 阅读 · 0 评论 -
.net core 根据数据库生成实体类
转载 2020-06-15 14:00:36 · 1407 阅读 · 2 评论 -
C#截取字符串
几个经常用到的字符串的截取string str=“123abc456”;int i=3;1 取字符串的前i个字符 str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i);2 去掉字符串的前i个字符: str=str.Remove(0,i); // or str=str.Substring(i);3 从右边开始取i个字符: str=str.Sub转载 2020-06-12 16:57:28 · 259 阅读 · 0 评论 -
MVC对前端传值
一、通过ViewBag传值:传值可以是字段和list等其他类型后台代码 ViewBag.Message = "Your application description page."; ViewBag.Message2 = "Your application description page2."; ViewBag.Message3 = "Your application description page3.";html页面获取代码: <h原创 2020-06-12 16:56:39 · 461 阅读 · 0 评论 -
.net core EF分页
原创 2020-06-12 16:55:34 · 3634 阅读 · 1 评论 -
EF C# MVC EF自动带s问题
原创 2020-06-12 16:50:18 · 298 阅读 · 0 评论 -
EF增删改查怎么写
转载 2020-06-12 16:49:05 · 192 阅读 · 0 评论 -
.net core 代码先行
原创 2020-06-12 16:47:46 · 199 阅读 · 0 评论 -
Asp.net获取IP和端口号
原创 2020-06-12 16:36:22 · 2323 阅读 · 0 评论 -
asp.net前端ajax传值给控制器
原创 2020-06-12 16:35:48 · 502 阅读 · 0 评论 -
webserver下载文件的两种方式
转载 2020-06-12 16:34:37 · 1404 阅读 · 0 评论 -
利用WebService实现远程服务器文件的上传和下载
转载 2020-06-12 16:33:48 · 329 阅读 · 0 评论 -
C#遍历文件夹及文件
转载 2020-06-12 16:33:04 · 263 阅读 · 0 评论 -
ajax跨域请求调用webservice接口
原创 2020-06-11 14:25:30 · 187 阅读 · 0 评论 -
socket 粘包拼接
原创 2020-06-11 14:24:54 · 166 阅读 · 0 评论 -
?.Invoke if不等于空
原创 2020-06-11 14:24:21 · 132 阅读 · 0 评论