0
Fixed

1.4.0 BETA: DictionaryContainsKey no longer works

Real World 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 3

This unit no longer works for me. The code has changed from

public bool Contains(Recursion recursion)
		{
			var dictionary = this.dictionary.GetValue<IDictionary>(recursion);
			var key = this.key.GetValue<object>(recursion);
			
			return dictionary.Contains(key);
		}

to 

public bool Contains(Recursion recursion)
		{
			var dictionary = this.dictionary.GetValue<IDictionary>(recursion);
			var key = this.key.GetValue<IDictionary>(recursion);
			
			return dictionary.Contains(key);
		}

so the key now has to be a dictionary!? For me its usually a string.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
+1
Working on Fix

That's a bug indeed! Will fix, good find, thank you!

+1
Fixed in Beta

Will be fixed in v.1.4.0 Beta 2.