随笔分类 -  c#知识点

摘要:http://t.zoukankan.com/YYkun-p-15380859.html C# 实现数据脱敏 数据脱敏,此处以姓名、身份证为例 /// <summary> /// 姓名敏感处理 /// </summary> /// <param name="fullName">姓名</param> 阅读全文
posted @ 2022-11-10 17:59 yinghualeihenmei 阅读(511) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/lyy445910200/p/5420554.html 1.绑定数据库中一个主键前台代码:<ItemTemplate> <asp:ImageButton ID="ibtnUpdate" runat="server" CommandArgument='< 阅读全文
posted @ 2022-11-10 10:36 yinghualeihenmei 阅读(39) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/jiangyu912/article/details/4969376 iTextSharp.dll是个开源的用于生成pdf的类库了 项目中我们只需要引用就可以了,可以用来合并,拆分PDF,也可以用来添加水印 添加水印:https://zhuanlan.zh 阅读全文
posted @ 2022-11-04 14:12 yinghualeihenmei 阅读(183) 评论(0) 推荐(0) 编辑
摘要:http://www.javashuo.com/article/p-bxxifltn-hb.html 依我我的理解单元测试就是对程序的小单元进行测试,一个测试不该包含两个或更多单元,整体而言大多都是对方法、属性的编码正确性进行验证。可是每每一个方法又会调用其余的方法或属性,我这里暂称之为外部依赖,于 阅读全文
posted @ 2022-11-04 13:33 yinghualeihenmei 阅读(109) 评论(0) 推荐(0) 编辑
摘要:https://www.nhooo.com/note/qa0bsy.html C#中的Convert.FromBase64String(String)方法将指定的字符串转换为等效的8位无符号整数数组,该字符串将二进制数据编码为以64位为基数。 语法 以下是语法- public static byte 阅读全文
posted @ 2022-11-03 17:53 yinghualeihenmei 阅读(1633) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/sunny3158/articles/14218470.html Clone() 只是复制表结构,包括所有的架构和约束。简单理解就是复制原表中的字段。 Copy() 复制整个表,包括表结构和表中所有的数据,即原表中的字段和字段值。 替换DataTabl 阅读全文
posted @ 2022-11-02 14:31 yinghualeihenmei 阅读(2170) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/carekee/articles/2094731.html C#中Trim()、TrimStart()、TrimEnd()的用法: 这三个方法用于删除字符串头尾出现的某些字符。Trim()删除字符串头部及尾部出现的空格,删除的过程为从外到内,直到碰到一 阅读全文
posted @ 2022-10-31 11:38 yinghualeihenmei 阅读(101) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_42528820/article/details/111400257 AcceptButton场景有一个界面需要输入很多很信息,通过设置TabIndex可以让用户输完一个文本框的信息使用tab键就可以跳到下一个输入信息的文本框,当用户将所有信 阅读全文
posted @ 2022-10-27 17:17 yinghualeihenmei 阅读(185) 评论(0) 推荐(0) 编辑
摘要:https://vimsky.com/examples/detail/csharp-class-system.version.html 本文整理汇总了C#中System.Version类的典型用法代码示例。 Version类属于System命名空间,在下文中一共展示了Version类的9个代码示例, 阅读全文
posted @ 2022-10-27 17:00 yinghualeihenmei 阅读(343) 评论(0) 推荐(0) 编辑
摘要:https://www.jb51.net/article/247960.htm 提供表示 Windows 注册表中的根项的 RegistryKey 对象,并提供访问项/值对的 static 方法。 继承层次结构 System.Object Microsoft.Win32.Registry 命名空间: 阅读全文
posted @ 2022-10-27 16:48 yinghualeihenmei 阅读(164) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/Calvin_zhou/article/details/107831241 一 概述在C#语言中进程类是指Process类,该类所在的命名空间是System.Diagnostics Process类主要提供对本地和远程进程的访问,并提供对本地进程的启动、停 阅读全文
posted @ 2022-10-27 16:12 yinghualeihenmei 阅读(2364) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_41319343/article/details/86632254 1、publicstaticvoidEnableVisualStyles():此方法为应用程序启用可视样式。 是激活应用程序的显示风格,而显示风格是构成操作系统主题的各种元素,如色彩 阅读全文
posted @ 2022-10-27 15:52 yinghualeihenmei 阅读(525) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_43027000/article/details/120451054 ” - %22# - %23% - %25& - %26( - %28) - %29+ - %2B, - %2C/ - %2F: - %3A; - %3B< - %3C= 阅读全文
posted @ 2022-10-26 17:59 yinghualeihenmei 阅读(121) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/zhaocg00/article/details/124539625 因为Format方法接收的参数是Object类型,所以对于值类型会涉及到装箱的操作 下面通过一些例子来详细介绍string.Format的用法: 如果你想要往另外一个字符串中插入某个ob 阅读全文
posted @ 2022-10-26 17:14 yinghualeihenmei 阅读(388) 评论(0) 推荐(0) 编辑
摘要:https://zhidao.baidu.com/question/142795342.html C语言中“=>”的意思: lambda表达式,表示一个匿名函数,=>前面的是参数,后面的是函数体。你可以把它当作一个函数。 举例说明:Func<int, int, int> Add = (x, y) = 阅读全文
posted @ 2022-10-26 16:33 yinghualeihenmei 阅读(1590) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/shanhanyu/article/details/80515892 1. SQL注入 安全等级★★★★★ 实际上这个漏洞很严重,一旦被注入成功,后果不堪设想,但这类问题处理起来还是蛮简单的,下面以JAVA为例举例说明 推荐方案,使用预编译的prepare 阅读全文
posted @ 2022-10-26 16:32 yinghualeihenmei 阅读(635) 评论(0) 推荐(0) 编辑
摘要:https://segmentfault.com/a/1190000039202628 https://learn.microsoft.com/zh-cn/dotnet/csharp/linq/ https://blog.csdn.net/qq_42672770/article/details/12 阅读全文
posted @ 2022-10-25 11:28 yinghualeihenmei 阅读(36) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/wangbaicheng1477865665/archive/2018/01/10/8213917.html DataRow转为DataTable dt = drs.CopyToDataTable<DataRow>(); 1.概念 DataSet是AD 阅读全文
posted @ 2022-10-25 09:52 yinghualeihenmei 阅读(436) 评论(0) 推荐(0) 编辑
摘要:https://zhidao.baidu.com/question/200851857.html 1.LINQ 概述 LINQ(Language-Integrated Query,语言集成查询)是微软在.NET Framework 3.5版本引入的新功能,它能够将查询功能直接引入.Net Frame 阅读全文
posted @ 2022-10-24 17:52 yinghualeihenmei 阅读(53) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_26640897/article/details/81161883 有时候我们需要对数据表进行筛选,微软为我们封装了一个公共方法, DataTable.Select(),其用法如下: Select() Select(string filterExpr 阅读全文
posted @ 2022-10-24 15:50 yinghualeihenmei 阅读(3048) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示