Kalpesh said:
How about winforms/asp.net app ?
It entirely depends on what they're doing. I wouldn't expect an ASP.NET
app to needs to create AppDomains separately themselves (each ASP.NET
app is within its own AppDomain itself, I believe) but a WinForms app
might.
What are the cases, where it will be better to create an appdomain &
load assemblies etc?
If you need to keep a process running but start an awful lot of it
again from scratch, you might well want to use a "start-up" AppDomain
which loads the other one, and which can receive instructions to
restart (unload the current AppDomain and create a new one).
Another situation might be where you're loading plug-ins which you want
to be able to unload as well. Loading a plug-in within its own
AppDomain gives a level of separation from the "main" code which may be
valuable, and allows you to unload it later.
These are only examples, however - I'm sure other people have other use
cases. They should give you a flavour though.