1 2 3 4 5 ··· 30 下一页
摘要: 中文版本介绍 **项目地址:https://github.com/JohnYang1210/PycomCAD ** PyComCAD介绍及开发方法 1.综述 ​ 提到Autocad在工业界的二次开发,VB或者Lisp可能作为常用的传统的编程语言。但是,Python语言简洁,优雅,学习门槛低,理应在A 阅读全文
posted @ 2021-02-27 18:32 JohnYang819 阅读(5181) 评论(1) 推荐(1)
摘要: 来给你几个层次递进的 LINQ Join 示例,从最基础的单表连接到多表、对象导航、分组连接全部覆盖。 以下示例均基于 C# + LINQ to Objects(适用于 EF Core / ABP 的仓储查询场景)。 🌱 一、基本示例:两表连接(内连接 Inner Join) 假设你有两个列表: 阅读全文
posted @ 2025-10-07 17:25 JohnYang819 阅读(11) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tas 阅读全文
posted @ 2025-09-21 23:12 JohnYang819 阅读(10) 评论(0) 推荐(0)
摘要: ![image](https://img2024.cnblogs.com/blog/1599580/202509/1599580-20250921143350368-1877215917.png) ![image](https://img2024.cnblogs.com/blog/1599580/202509/1599580-20250921143507348-808106558.png) 阅读全文
posted @ 2025-09-21 14:35 JohnYang819 阅读(6) 评论(0) 推荐(0)
摘要: [MemoryDiagnoser] public class DMesh3ScenarioBenchmark { private const int N = 2_000_000; // 模拟大规模几何操作 private Random rand = new Random(); [Benchmark] 阅读全文
posted @ 2025-09-09 22:20 JohnYang819 阅读(10) 评论(0) 推荐(0)
摘要: class PointCollectSink : CallbackBase,SimplifiedGeometrySink { public class GlyphContour { public List<RawVector2> Points = new List<RawVector2>(); pu 阅读全文
posted @ 2025-09-07 21:59 JohnYang819 阅读(17) 评论(0) 推荐(0)
摘要: 调用某个异步方法与新线程中启动新的task不同,需要编程人员自己保证async方法快速返回。怎么理解? 这句话指出了异步编程中的一个重要原则:异步方法应该尽可能快速返回控制权。让我详细解释: 核心概念理解 1. 异步方法 vs 新线程 // ❌ 错误理解:异步 == 新线程 async Task D 阅读全文
posted @ 2025-08-27 00:14 JohnYang819 阅读(21) 评论(0) 推荐(0)
摘要: static List<int> CalInts(int len=100000) { List<int> a = Enumerable.Range(0,len).ToList(); return a; } List<int> aa = CalInts(); Stopwatch sw = new St 阅读全文
posted @ 2025-08-04 17:26 JohnYang819 阅读(8) 评论(0) 推荐(0)
摘要: 证明:对于向量a,b,c有ax(bxc)=(a*c)b-(a*b)c 阅读全文
posted @ 2025-07-06 16:02 JohnYang819 阅读(27) 评论(0) 推荐(0)
摘要: 一般情况,C#数组仅支持2GB大小,对于int[]来讲,大概就是:2*1024*1024*1024/4=530870912,但实际上 比这个数值略小。 int bb = 536870897; while (true) { bb++; try { int[] aa = new int[bb]; } c 阅读全文
posted @ 2025-07-04 22:28 JohnYang819 阅读(12) 评论(0) 推荐(0)
摘要: public interface IContactManifold<TManifold> where TManifold : struct, IContactManifold<TManifold> 这个泛型约束 where TManifold : struct, IContactManifold<T 阅读全文
posted @ 2025-07-03 12:41 JohnYang819 阅读(42) 评论(0) 推荐(0)
1 2 3 4 5 ··· 30 下一页