Tell me please, why BindingList RemoveItem method is protected? What is the purpose of it? I know I can just inherit from it but the question is why one have made this protected
Tell me please, why BindingList RemoveItem method is protected? What is the purpose of
Share
This is protected because
BindingList<T>is based onCollection<T>, andRemoveItemis intended for implementations ofCollection<T>to provide the proper, collection-specific implementation.To use this directly, you can use the public RemoveAt method. This calls
RemoveIteminternally, but is the public-facing API for removing an item by index.