学海无涯

导航

2024年5月11日 #

C#中的对象深拷贝和浅拷贝

摘要: 1. 浅拷贝 public class Person { public Person() { this.Address = new Address(); } public string Name { get; set; } public int Age { get; set; } public Ad 阅读全文

posted @ 2024-05-11 14:10 宁静致远. 阅读(36) 评论(0) 推荐(0) 编辑

在 WinForms 应用程序中处理未经处理的异常

摘要: internal static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { // 添加事件处理程序以捕获主UI线程中发生的所有异常 Application.T 阅读全文

posted @ 2024-05-11 14:02 宁静致远. 阅读(9) 评论(0) 推荐(0) 编辑