HashTable在WinForm下的上位机软件开发中的应用  被引量:1

在线阅读下载全文

作  者:宋城虎 马静[1] 

机构地区:[1]中国电子科技集团公司第二十七研究所,河南郑州450047

出  处:《科技创新与应用》2021年第25期171-173,共3页Technology Innovation and Application

摘  要:基于WinForm的上位机软件开发中,经常需要与多个下位机或者外围设备进行通信,当上位机通信的对象增多时,上位机编程也会随之变得越来越复杂。文章利用.NET Framework中的HashTable的key和value可支持任意类型值的特点,设计一种双键哈希表,可实现将任意类型的两个对象作为索引存储一个任意类型的value值。将这种双键哈希表应用在上位机软件开发中,可大幅度优化代码结构,增加程序的复用性和可移植性。In the software development of upper computer based on WinForm,it is often necessary to communicate with multiple lower computers or peripheral devices.When the communication objects of upper computer increase,the programming of upper computer will become more and more complex.In this paper,taking advantage of the fact that the key and velue of HashTable in.NET Framework can support any type of value,a double-key hash table is designed,which can store an arbitrary type of value with two objects of any type as an index.The application of this double-key hash table to the host computer software development can greatly optimize the code structure and increase the reusability and portability of the program.

关 键 词:HASHTABLE 上位机 WINFORM .NET Framework 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象