and why we use it?
What is container?how to use it?
give me detail what is container and how to use?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Sunny SharmaRank #223 · 11.1K pointsPosted Jun 10, 2013, 8:52 PM EDT
A usual definition would mean a container is something in that we can put our things inside.
Containers are objects that encapsulate and track zero or more components. In this context, containment refers to logical containment, not visual containment. You can use components and containers in a variety of scenarios, including scenarios that are both visual and not visual.
The components in a container are tracked in a first-in, first-out list, which also defines the order of the components within the container. Added components are appended to the end of the list -MSDN.
A container class implements two interfaces IContainer & IDisposable.
AFAIK, Basically we use it for Component Development.
Hope it helps.
Thanks.
pooja thorat11 pointsPosted Jun 11, 2013, 6:21 AM EDT
can you explain in example?