Re: [DOTNET] Detecting default AppDomain

2002-05-10 Thread Marsh, Drew
Bill Baird [mailto:[EMAIL PROTECTED]] wrote: > How can I determine if a given piece of code is running in > the default AppDomain. I searched the archives, but came up empty. Hmmm... I thought of this, but it feels so hacky: // Get the entry point Assembly Assembly entryPointAssembly = Assemb

Re: [DOTNET] Detecting default AppDomain

2002-05-10 Thread Bill Baird
Is it as simple as (Thread.GetDomainID() == 1) ? Is this guaranteed to be true on the default AppDomain? Thanks, Bill > -Original Message- > From: Bill Baird > Sent: Friday, May 10, 2002 2:25 PM > To: [EMAIL PROTECTED] (E-mail) > Subject: Detecting default AppDomain