zoukankan
html css js c++ java
c#遍历HashTable
C# 代码
using
System;
using
System.Collections.Generic;
using
System.Text;
using
System.Collections;
namespace
GetSpec
...
{
class
HashTableDemo
...
{
public
string
Get()
...
{
Hashtable hashTable
=
new
Hashtable();
hashTable.Add(
1
,
"
wuyi
"
);
hashTable.Add(
2
,
"
sky
"
);
System.Windows.Forms.MessageBox.Show((
string
)hashTable[
1
]);
foreach
(DictionaryEntry de
in
hashTable)
...
{
System.Windows.Forms.MessageBox.Show(de.Key.ToString());
System.Windows.Forms.MessageBox.Show(de.Value.ToString());
}
System.Collections.IDictionaryEnumerator enumerator
=
hashTable.GetEnumerator();
while
(enumerator.MoveNext())
...
{
System.Windows.Forms.MessageBox.Show(enumerator.Key.ToString());
System.Windows.Forms.MessageBox.Show( enumerator.Value.ToString());
}
return
(
string
)hashTable[
1
];
}
}
}
查看全文
相关阅读:
dwSun带你选Python的编辑器/IDE
ubuntu中文乱码解决
解决matplotlib中文显示
1506.01186-Cyclical Learning Rates for Training Neural Networks
1503.02531-Distilling the Knowledge in a Neural Network.md
1804.03235-Large scale distributed neural network training through online distillation.md
mysql导入太慢解决方法
已某个时间单位(日月周年)来分割时间段
阿里云邮件推送
阿里云短信推送服务
原文地址:https://www.cnblogs.com/leeolevis/p/1383135.html
最新文章
Javascript Engine, Java VM, Python interpreter, PyPy – a glance
HTTP 初步探究
Unicode vs. UTF-8 etc.
Note on Preliminary Introduction to Distributed System
Spring Boot 之 spring.factories
Linux 服务器 Java环境部署系列(五):搭建RabbitMQ
Linux 服务器 Java环境部署系列(四):搭建jenkins环境、部署项目
Linux 服务器 Java环境部署系列(三):安装git、maven
Linux 服务器 Java环境部署系列(二):安装nginx、mysql、tomcat、redis
Linux 服务器 Java环境部署系列(一):安装JDK
热门文章
Java BigDecimal类
Java Optional类
消息队列(以MQ为例)
Java 反射机制详解
数据化运营
饭后爱小站搬家啦!
log4j.properties配置详解
将博客搬至CSDN
docker的安装和简单配置
conda国内源的设置 by dwSun
Copyright © 2011-2022 走看看