Fork me on Gitee
摘要: 这是一个非常经典且重要的C#基础面试题,也是实际开发中容易产生Bug的重灾区。要彻底理解深拷贝和浅拷贝,首先必须弄清楚值类型和引用类型在内存中的存储方式。 第一部分:基础概念 —— 值类型 vs 引用类型 在C#中,数据类型分为两大类,它们的存储位置和赋值行为完全不同。 1. 值类型 (Value 阅读全文
posted @ 2025-12-05 16:04 ThesunKomorebi 阅读(0) 评论(0) 推荐(0)
摘要: using System; using System.IO; using System.Net; using System.Threading.Tasks; namespace Gentle.PrintInspectManLib { // 开始服务(重构版) public class ServerH 阅读全文
posted @ 2025-12-05 15:55 ThesunKomorebi 阅读(1) 评论(0) 推荐(0)
摘要: 不会改变原来数组【concat()、every()、some()、filter()、map()、slice()】 concat() // concat()用于连接两个或多个字符串 // 该方法没有改变原有字符串,但是会返回连接两个或多个字符串的新字符串 let s1 = 'name:'; let s 阅读全文
posted @ 2023-01-11 15:29 ThesunKomorebi 阅读(587) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2022-09-09 14:09 ThesunKomorebi 阅读(231) 评论(0) 推荐(0)
摘要: gitee地址:https://gitee.com/thesunkomore/user-info-manage 1.本程序的使用的语言是C#,数据库是Access2003。主要是对员工信息进行简单的增删改查操作和对.ini配置文件的读写操作。 2.代码运行效果如下: 3.代码实现 点击查看代码。cl 阅读全文
posted @ 2022-04-13 11:50 ThesunKomorebi 阅读(411) 评论(0) 推荐(0)
摘要: 1 /// <字符串转16进制格式,不够自动前面补零> 2 /// 假设文本框里面填写的是:01 02 03 04 05 06 3 /// Str获取的是01 02 03 04 05 06 是字符串 4 /// 需要将01转为0x01,02转为0x02 5 /// 首先默认把文本框每隔两个字符作为一 阅读全文
posted @ 2022-02-24 09:24 ThesunKomorebi 阅读(1173) 评论(0) 推荐(0)
摘要: public class MainClass { public static void main(String[] args) { int[] my_array = {1, 2, 5, 5, 6, 6, 7, 2, 9, 2}; findDupicateInArray(my_array); } pu 阅读全文
posted @ 2021-12-24 14:35 ThesunKomorebi 阅读(92) 评论(0) 推荐(0)
摘要: 转载及详情链接:https://www.cnblogs.com/liugang-vip/p/5616484.html 概述: 那什么叫事件委托呢?它还有一个名字叫事件代理,JavaScript高级程序设计上讲:事件委托就是利用事件冒泡,只指定一个事件处理程序,就可以管理某一类型的所有事件。那这是什么 阅读全文
posted @ 2021-08-04 08:09 ThesunKomorebi 阅读(47) 评论(0) 推荐(0)
摘要: 控制台报的错误是: Access to XMLHttpRequest at 'http://localhost:3000/error' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origi 阅读全文
posted @ 2021-07-27 11:25 ThesunKomorebi 阅读(134) 评论(0) 推荐(0)
摘要: 转载:http://www.nowamagic.net/librarys/veda/detail/1250 在开发中,我们经常需要判断某个对象是否为数组类型,在Js中检测对象类型的常见方法都有哪些呢? typeof 操作符 对于Function, String, Number ,Undefined 阅读全文
posted @ 2021-07-22 08:45 ThesunKomorebi 阅读(132) 评论(0) 推荐(0)