I have a library which I may use with either a console app or an asp.net web
app.
Does anyone have a suggestion on how that library could determine the type
of running application at runtime?
Thanks
AJ
Bruce Johnson - 13 Dec 2004 20:39 GMT
I haven't tried this, but you could check the HttpRuntime object. I
suspect that if you're running in a Windows Forms environment, this
value will be set to null.
Bruce Johnson [.NET MVP]
http://www.objectsharp.com/blogs/bruce