Creating two applications with the same friendly name

Can someone find out what happens if we create two appdomains with the same friendly name?

static void Main(string[] args) { var myDomain = AppDomain.CreateDomain("mydomain"); var myDomain2 = AppDomain.CreateDomain("mydomain"); } 

As I noticed, this does not throw an exception, maybe two local variables point to the same appdomain?

+4
source share
1 answer

The friendlyName parameter is used to identify the domain in a way that matters to the person. This line should be suitable for display in user interfaces.

http://msdn.microsoft.com/en-us/library/47e8e141.aspx

As you can guess, this can lead to user confusion if you use a friendly name in the user interface

+7
source

All Articles