using System.Collections; namespace Unity.VisualScripting { /// /// Creates an empty dictionary. /// [UnitCategory("Collections/Dictionaries")] [UnitOrder(-1)] [TypeIcon(typeof(IDictionary))] [RenamedFrom("Bolt.CreateDitionary")] public sealed class CreateDictionary : Unit { /// /// The new empty dictionary. /// [DoNotSerialize] [PortLabelHidden] public ValueOutput dictionary { get; private set; } protected override void Definition() { dictionary = ValueOutput(nameof(dictionary), Create); } public IDictionary Create(Flow flow) { return new AotDictionary(); } } }