Exemplo n.º 1
0
        public static void AotStubs()
        {
            var dictionary = new AotDictionary();

            dictionary.Add(default(object), default(object));
            dictionary.Remove(default(object));
            var item = dictionary[default(object)];

            dictionary[default(object)] = default(object);
            dictionary.Contains(default(object));
            dictionary.Clear();
            var count = dictionary.Count;
        }
        public IDictionary Merge(Flow flow)
        {
            var dictionary = new AotDictionary();

            for (var i = 0; i < inputCount; i++)
            {
                var inputDictionary = flow.GetValue <IDictionary>(multiInputs[i]);

                var enumerator = inputDictionary.GetEnumerator();

                while (enumerator.MoveNext())
                {
                    if (!dictionary.Contains(enumerator.Key))
                    {
                        dictionary.Add(enumerator.Key, enumerator.Value);
                    }
                }
            }

            return(dictionary);
        }