如何实现多指标解释?

编程入门 行业动态 更新时间:2024-10-23 13:22:51
本文介绍了如何实现多指标解释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

基本上,我想是这样解释< Tkey1,TKey2,TValue>中而不是(我在这里看到的其他问题)与AND,但还是按键。为了更好地解释:我希望能够找到在字典中只提供的关键之一,而不是两个元素

Basically I want something like Dictionary<Tkey1, TKey2, TValue>, but not (as I've seen here in other question) with the keys in AND, but in OR. To better explain: I want to be able to find an element in the dictionary providing just one of the keys, not both.

我也认为我们应该考虑线程安全并轻松扩展到词典<的能力; Tkey1,TKey2,TKeyN,TValue>解决方案...

I also think we should consider thread-safety and the ability to easily scale to a Dictionary<Tkey1, TKey2, TKeyN, TValue> solution...

推荐答案

我想实现这两个字典

Dictionary<TKey1, KeyValuePair<TKey2, TValue>> dict1; Dictionary<TKey2, KeyValuePair<TKey1, TValue>> dict2;

如果您将得到您同时拥有的价值和其他键1键以及便于这样删除和更新。

That way if you are given 1 key you have both the value and the other key as well for easy deletes and updates.

更多推荐

如何实现多指标解释?

本文发布于:2023-11-30 20:33:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651398.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何实现   多指

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!