检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.229