C# 中 SortedList 类的 Count 属性是什么意思?
示例
using System;
using System.Collections;
namespace Demo {
class Program {
static void Main(string[] args) {
SortedList s = new SortedList();
s.Add("S1", "Electronics");
s.Add("S2", "Clothing");
s.Add("S3", "Applicances");
s.Add("S4", "Books");
s.Add("S5", "Accessories");
s.Add("S6", "Musical Instruments");
Console.WriteLine("Count = " + s.Count);
}
}
}输出
Count = 6
广告
数据结构
网络
关系型数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP