Clear controls does not dispose them - what is the risk?
问题 There are multiple threads(a, b, c etc.) about the fact that Clear () ing items in the .NET component containers does not Dispose them(by calling Dispose( true ). Most frequently, IMHO, the Clear-ed components are not used anymore in the application, so it needs explicitly be Disposed after Clearing them from the parent containers. Maybe is a good idea that collection\'s Clear method had a bool parameter dispose that when in true also disposes the collection elements before its removing from