Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个带有 1 个属性的 asp.net 用户配置文件,List<string> Password它包含 24 个密码,现在我想从此属性值中删除 4 个密码,我该怎么做?
List<string> Password
删除范围
Password.RemoveRange(index,count);
删除已知索引
Password.RemoveAt(index);
索引始终从零开始。所有方法列表