private Dictionary(godot_dictionary nativeValueToOwn) { NativeValue = (godot_dictionary.movable)(nativeValueToOwn.IsAllocated ? nativeValueToOwn : NativeFuncs.godotsharp_dictionary_new()); _weakReferenceToSelf = DisposablesTracker.RegisterDisposable(this); }
/// <summary> /// Constructs a new empty <see cref="Dictionary"/>. /// </summary> public Dictionary() { NativeValue = (godot_dictionary.movable)NativeFuncs.godotsharp_dictionary_new(); _weakReferenceToSelf = DisposablesTracker.RegisterDisposable(this); }