摘要:
在 C# 中,Equals 和 == 都可以用来“比较”,但它们比较的逻辑并不完全相同。最核心的一句话是: == 是运算符,可以被重载;Equals() 是方法,通常用于判断对象的“相等性”。 可以从几个层面理解。 1. 基本类型:看起来基本一样 int a = 10; int b = 10; Co 阅读全文
摘要:
using System; using System.IO; using System.Net; using System.Threading.Tasks; namespace Gentle.PrintInspectManLib { // 开始服务(重构版) public class ServerH 阅读全文
摘要:
不会改变原来数组【concat()、every()、some()、filter()、map()、slice()】 concat() // concat()用于连接两个或多个字符串 // 该方法没有改变原有字符串,但是会返回连接两个或多个字符串的新字符串 let s1 = 'name:'; let s 阅读全文