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

◆ Dispose() [2/2]

virtual void System.ComponentModel.Design.ServiceContainer.Dispose ( bool disposing)
inlineprotectedvirtual

Definition at line 126 of file ServiceContainer.cs.

127 {
128 if (!disposing)
129 {
130 return;
131 }
133 _services = null;
134 if (services == null)
135 {
136 return;
137 }
138 foreach (object value in services.Values)
139 {
140 if (value is IDisposable)
141 {
142 ((IDisposable)value).Dispose();
143 }
144 }
145 }

References System.ComponentModel.Design.ServiceContainer._services, System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.