Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Clear()

void ICollection< KeyValuePair< string, object > >. System.Dynamic.ExpandoObject.Clear ( )
inlineprivate

Definition at line 699 of file ExpandoObject.cs.

700 {
701 ExpandoData data;
703 {
704 data = _data;
705 _data = ExpandoData.Empty;
706 _count = 0;
707 }
708 PropertyChangedEventHandler propertyChanged = _propertyChanged;
709 if (propertyChanged == null)
710 {
711 return;
712 }
713 int i = 0;
714 for (int num = data.Class.Keys.Length; i < num; i++)
715 {
716 if (data[i] != Uninitialized)
717 {
718 propertyChanged(this, new PropertyChangedEventArgs(data.Class.Keys[i]));
719 }
720 }
721 }
PropertyChangedEventHandler _propertyChanged
static readonly object Uninitialized

References System.Dynamic.ExpandoObject._count, System.Dynamic.ExpandoObject._data, System.Dynamic.ExpandoObject._propertyChanged, System.Dynamic.ExpandoObject.ExpandoData.Class, System.Dynamic.ExpandoObject.ExpandoData.Empty, System.Dynamic.ExpandoClass.Keys, System.Dynamic.ExpandoObject.LockObject, and System.Dynamic.ExpandoObject.Uninitialized.