# Warning: Cannot find static method or constructor DesignScript.Builtin.Dictionary.ByKeysValues()

**URL:** <https://forum.dynamobim.com/t/warning-cannot-find-static-method-or-constructor-designscript-builtin-dictionary-bykeysvalues/33449>\
**Category:** DesignScript\
**Created:** [March 14, 2019, 11:10am UTC](https://forum.dynamobim.com/t/warning-cannot-find-static-method-or-constructor-designscript-builtin-dictionary-bykeysvalues/33449 "2019-03-14T11:10:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_Patrick\_Dalton](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wayne_patrick_dalton/32/69442_2.png) [@Wayne\_Patrick\_Dalton](https://forum.dynamobim.com/u/Wayne_Patrick_Dalton)\
**Post date:** [March 14, 2019, 11:10am UTC](https://forum.dynamobim.com/t/warning-cannot-find-static-method-or-constructor-designscript-builtin-dictionary-bykeysvalues/33449/1 "2019-03-14T11:10:57Z")

</div>

Hello,

Creating a dictionary (creating view sets), and I get this issue; C# Static Method/Constructor is missing - I must be missing a class library somewhere, right?:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/eabcb2696b83623e00917d35d754d73c6dac90c8.png)

Have read through this post, but did not come out the other end more illuminated on how to resolve the issue 😒

> [@Designscript.builtin.dictonary.bykeysvalues()](https://forum.dynamobim.com/t/designscript-builtin-dictonary-bykeysvalues/26919):
>
> i am upgrading all my nodes to 2.0 and i am getting this and do not know why [image]

Anyone got any hints?

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [March 14, 2019, 11:20am UTC](https://forum.dynamobim.com/t/warning-cannot-find-static-method-or-constructor-designscript-builtin-dictionary-bykeysvalues/33449/2 "2019-03-14T11:20:13Z")

</div>

You need Keys AND Values in dictionaries  
I see just one list of either.  
Some more info is in the primer.  
[https://primer.dynamobim.org/en/09\_Dictionaries/9-1\_What-is-a-dictionary.html](https://primer.dynamobim.org/en/09_Dictionaries/9-1_What-is-a-dictionary.html)

---

<div class="post-metadata">

**Author:** ![Wayne\_Patrick\_Dalton](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wayne_patrick_dalton/32/69442_2.png) [@Wayne\_Patrick\_Dalton](https://forum.dynamobim.com/u/Wayne_Patrick_Dalton)\
**Post date:** [March 14, 2019, 11:38am UTC](https://forum.dynamobim.com/t/warning-cannot-find-static-method-or-constructor-designscript-builtin-dictionary-bykeysvalues/33449/3 "2019-03-14T11:38:44Z")

</div>

gold star for @Marcel_Rijsmus

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9ad0714d7c5c49fee2c645df9ba8afb4ec597b00.png)
