- 解析关键词排名不稳定的十大原因
- 上传文件代码以及FileUpload1.HasFile总是报错问题解决办法
- 网站是创业者最好的工具
- thinkphp 类中this关键字
- .net core类中定义的ICollection对象保存在哪
- Asp.net文件上传 重命名 以及自动创建上传目录
- 几个seo基础知识
- 如何优化我们选择的关键词
- 微信小程序里的模块代码到底用import导入还是require导入
- 数据绑定以及Container.DataItem的具体分析(转)
邮箱:
手机:15383239821
SortedDictionary类
SortedDictionary<TKey,TValue>
表示类根据键进行排序的键/值对的集合。
命名空间: System.Collections.Generic
程序集: System(位于 System.dll)
类型参数
TKey 字典中的键的类型。
TValue 字典中的值的类型。
构造函数
SortedDictionary<TKey,TValue>()
初始化 SortedDictionary<TKey,TValue> 类的一个新实例,该实例为空并对键类型使用默认 IComparer<T> 实现。
SortedDictionary<TKey,TValue>(IComparer<TKey>)
初始化 SortedDictionary<TKey,TValue> 类的一个新实例,该实例为空并对比较键使用指定 IComparer<T> 实现。
SortedDictionary<TKey,TValue>(IDictionary<TKey,TValue>)
初始化 SortedDictionary<TKey,TValue> 类的新实例,该实例包含从指定的 IDictionary<TKey,TValue> 中复制的元素,并使用键类型的默认 IComparer<T> 实现。
SortedDictionary<TKey,TValue>(IDictionary<TKey,TValue>,IComparer<TKey>)
初始化 SortedDictionary<TKey,TValue> 类的新实例,该实例包含从指定的 IDictionary<TKey,TValue> 中复制的元素,并使用指定的 IComparer<T> 实现来比较键。
属性
Comparer
获取用于对 IComparer<T> 的元素进行排序的 SortedDictionary<TKey,TValue>。
Count
获取包含在 SortedDictionary<TKey,TValue> 中的键/值对的数目。
Item[TKey]
获取或设置与指定的键关联的值。
Keys
获得一个包含 SortedDictionary<TKey,TValue> 中的键的集合。
Values
获得一个包含 SortedDictionary<TKey,TValue> 中的值的集合。
方法
Add(TKey,TValue)
将带有指定键和值的元素添加到 SortedDictionary<TKey,TValue> 中。
Clear()
从 SortedDictionary<TKey,TValue> 中移除所有元素。
ContainsKey(TKey)
确定是否 SortedDictionary<TKey,TValue> 包含带有指定键的元素。
ContainsValue(TValue)
确定 SortedDictionary<TKey,TValue> 是否包含具有指定值的元素。
CopyTo(KeyValuePair<TKey,TValue>[],Int32)
从指定的索引处开始,将 SortedDictionary<TKey,TValue> 的元素复制到指定的 KeyValuePair<TKey,TValue> 结构的数组中。
Equals(Object)
确定指定的对象是否等于当前对象。(继承自 Object。)
Finalize()
在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。(继承自 Object。)
GetEnumerator()
返回循环访问 SortedDictionary<TKey,TValue> 的枚举数。
GetHashCode()
作为默认哈希函数。(继承自 Object。)
GetType()
获取当前实例的 Type。(继承自 Object。)
MemberwiseClone()
创建当前 Object 的浅表副本。(继承自 Object。)
Remove(TKey)
从 SortedDictionary<TKey,TValue> 中移除带有指定键的元素。
ToString()
返回表示当前对象的字符串。(继承自 Object。)
TryGetValue(TKey,TValue)
获取与指定键关联的值。
来源:https://blog.51cto.com/jiaojusuimu/1884710
-
2014-06-13asp.net文件上传下载及管理的实现
-
2020-11-12小程序中的小数计算问题
-
2013-06-09.net中从数据库money类型中读出来的数据只显示两位小数
-
2020-07-27品牌企业网站建设的3个关键关键点
-
2012-06-30link和domain的区别
-
2013-04-13SQL server和C#使用什么类型来记录金额
