<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Leandro Díaz Guerra&#039;s Blog &#187; Reflection</title>
	<atom:link href="http://www.leandrodg.com.ar/blog/tag/reflection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leandrodg.com.ar/blog</link>
	<description>Yet another developer blog</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:45:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Determine current execution context (ASP.NET or Winforms)</title>
		<link>http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/</link>
		<comments>http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 15:06:55 +0000</pubDate>
		<dc:creator>leandrodg</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Reflection]]></category>
		<category><![CDATA[Webforms]]></category>
		<category><![CDATA[Winforms]]></category>

		<guid isPermaLink="false">http://leandrodg.wordpress.com/2007/10/05/determine-current-execution-context-webforms-or-winforms/</guid>
		<description><![CDATA[I&#8217;ve searched over the internet for this and couldn&#8217;t find anything.
A method I&#8217;m working on should have a different behavior when called in a Web Application (Webforms) and a Windows Application (Winforms).
This is what I came up with, using Reflection:
	if (Assembly.GetEntryAssembly() != null)
	{
		// Running on Winforms context
	}
	else
	{
		// Running on ASP.NET context
	}

There are probably other ways [...]]]></description>
		<wfw:commentRss>http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
