<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - Internal Scope being accessed outside an assembly?</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - Internal Scope being accessed outside an assembly?</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Mon, 20 May 2013 04:44:45 GMT</pubDate>
	<lastBuildDate>Mon, 20 May 2013 04:44:45 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>3</c9:totalResults>
	<c9:pageCount>-3</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Internal Scope being accessed outside an assembly?</title>
		<description><![CDATA[<p>I'm diving into WWF and noticed something that's at opposition to my original understanding of the scope modifier 'internal'.<br>
<br>
To create a custom activity in WWF you inherit from System.Workflow.ComponentModel.Activity and override the Execute method which is defined as:<br>
<br>
<font color="#1000a0">protected internal</font> <font color="#1000a0">virtual</font>
<a title="System.Workflow.ComponentModel.ActivityExecutionStatus" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=1">
<font color="#006018">ActivityExecutionStatus</font></a> <b>Execute</b>(<a title="System.Workflow.ComponentModel.ActivityExecutionContext" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Object=2"><font color="#006018">ActivityExecutionContext</font></a>
 executionContext);<br>
<br>
This all works as expected but I noticed that the Execute method is marked internal. My understanding of the internal keyword is that all classes or members marked internal are only available to the&nbsp;containing assembly.<br>
<br>
How is it that Execute is available to my code?<br>
<br>
[Took a quick check at my code and reflector to double check my post and found something new]<br>
<br>
I don't actually have access to call the execute method in my derived class. This seems very interesting. So since the method is marked protected virtual, I'm allowed to override it ignoring the internal scope, but can't actually call it. Does this seem odd
 to anyone else? So how would I create a method that is overridable only to classes in my assembly, drop the protected modifier?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/251256-Internal-Scope-being-accessed-outside-an-assembly/251256#251256</link>
		<pubDate>Sat, 06 Jan 2007 20:24:22 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/251256-Internal-Scope-being-accessed-outside-an-assembly/251256#251256</guid>
		<dc:creator>JoshB</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JoshB/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Internal Scope being accessed outside an assembly?</title>
		<description><![CDATA[<p>'Internal protected' means can be accessed from current assembly or by any other class that extends this one.... think of the mnodiffiers like having and 'or' between them 'internal or protected' access<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/251256-Internal-Scope-being-accessed-outside-an-assembly/fa0bac5cb1fd451399e59dea014fd150#fa0bac5cb1fd451399e59dea014fd150</link>
		<pubDate>Sat, 06 Jan 2007 21:32:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/251256-Internal-Scope-being-accessed-outside-an-assembly/fa0bac5cb1fd451399e59dea014fd150#fa0bac5cb1fd451399e59dea014fd150</guid>
		<dc:creator>Pop Catalin</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Pop Catalin Sever/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Internal Scope being accessed outside an assembly?</title>
		<description><![CDATA[<p>Beautiful! I was going to say, but I can't get to the Execute method in my assembly but then&nbsp;I realized it's not public, it's protected, and indeed I can access execute from within the derived class.<br>
<br>
Thanks for the response.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/251256-Internal-Scope-being-accessed-outside-an-assembly/0cd377b910354e4eb35f9dea014fd176#0cd377b910354e4eb35f9dea014fd176</link>
		<pubDate>Sat, 06 Jan 2007 21:35:40 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/251256-Internal-Scope-being-accessed-outside-an-assembly/0cd377b910354e4eb35f9dea014fd176#0cd377b910354e4eb35f9dea014fd176</guid>
		<dc:creator>JoshB</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JoshB/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>