[C#技术] Dictionary、ArrayList、Hashtable和数组 Array 的区别
 
for(int i=0;i<list.Count;i++)
{
System.Console.WriteLine(list.GetKey(i));
}

//Stack
System.Collections.Stack stack=new System.Collections.Stack();
stack.Push(1);
stack.Push(2);
System.Console.WriteLine(stack.Peek());
while(stack.Count>0)
{
System.Console.WriteLine(stack.Pop());
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-11-29
  • 2022-12-23
  • 2021-06-17
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2021-08-21
  • 2022-12-23
相关资源
相似解决方案