会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
guchen-bky
博客园
首页
新随笔
联系
订阅
管理
2025年8月25日
列表的复制
摘要: 1、列表A的直接赋值给列表B List<int> a = new List<int>(); a.Add(1); a.Add(2); a.Add(3); a.Add(4); a.Add(5); List<int> b = a; b.RemoveAt(0); foreach (int i in a) {
阅读全文
posted @ 2025-08-25 22:14 孤沉
阅读(5)
评论(0)
推荐(0)
公告