<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Internal And Protected</title>
	<atom:link href="http://agsmith.wordpress.com/2007/12/15/internal-and-protected/feed/" rel="self" type="application/rss+xml" />
	<link>http://agsmith.wordpress.com/2007/12/15/internal-and-protected/</link>
	<description>Random Thoughts about C#, VS, WinForms, WPF and .NET in General</description>
	<lastBuildDate>Tue, 22 Dec 2009 20:10:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alex Sarafian</title>
		<link>http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-21</link>
		<dc:creator>Alex Sarafian</dc:creator>
		<pubDate>Mon, 17 Dec 2007 21:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-21</guid>
		<description>I fully understood what you explained. I just thought from my expierence that two keywords interact with the AND logic, but from what you explained I was mistaken.

Anyway thanks again for your answer.
Nice solution though.</description>
		<content:encoded><![CDATA[<p>I fully understood what you explained. I just thought from my expierence that two keywords interact with the AND logic, but from what you explained I was mistaken.</p>
<p>Anyway thanks again for your answer.<br />
Nice solution though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: agsmith</title>
		<link>http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-20</link>
		<dc:creator>agsmith</dc:creator>
		<pubDate>Mon, 17 Dec 2007 15:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-20</guid>
		<description>Hi Alex. Actually what you are describing - internal protected - is what the clr refers to as AssemblyOrFamily (or you might think of it as InternalOrProtected). This means that the member may be accessed by someone internally in the assembly OR by any derived class even one that is in another assembly. I described this in the blurb on scopes. The scope that is not supported currently is InternalAndProtected meaning that only members that are within that assembly AND derived from the class may access the member. I agree that we should not need to use reflection to do what the compiler should be handling for us. I merely offered the reflection approach as a way to try and enforce what is not currently supported.</description>
		<content:encoded><![CDATA[<p>Hi Alex. Actually what you are describing &#8211; internal protected &#8211; is what the clr refers to as AssemblyOrFamily (or you might think of it as InternalOrProtected). This means that the member may be accessed by someone internally in the assembly OR by any derived class even one that is in another assembly. I described this in the blurb on scopes. The scope that is not supported currently is InternalAndProtected meaning that only members that are within that assembly AND derived from the class may access the member. I agree that we should not need to use reflection to do what the compiler should be handling for us. I merely offered the reflection approach as a way to try and enforce what is not currently supported.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Sarafian</title>
		<link>http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-19</link>
		<dc:creator>Alex Sarafian</dc:creator>
		<pubDate>Mon, 17 Dec 2007 09:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-19</guid>
		<description>Mr Smith recently I had the same problem. What I hadn&#039;t realized was that intentionally protected internal scope allows class that inherit my class to use the protected internal member.

I thought it was a bug. Now I realize that it is a not so good implementation in Object oriented approach. As i understand it a logic &amp; applies to scopes. 
protected allows children class to access protected members of the father
internal allows only class from the specific assebly to access specified members.

So if you apply the &amp; bitwise logic to protectd &amp; internal, the natural conclution is what we both expected. That&#039;s why i first thought of it as a bug.

Personaly I believe that it is a huge problem, and being forced to used a solution like yours is not very appealing thought usefull if it comes to that. 

I should not be forced to use reflection nor by any means allow the consumer of my control understand that there are members that i have made tricks to protect from accessing.

Thank you.</description>
		<content:encoded><![CDATA[<p>Mr Smith recently I had the same problem. What I hadn&#8217;t realized was that intentionally protected internal scope allows class that inherit my class to use the protected internal member.</p>
<p>I thought it was a bug. Now I realize that it is a not so good implementation in Object oriented approach. As i understand it a logic &amp; applies to scopes.<br />
protected allows children class to access protected members of the father<br />
internal allows only class from the specific assebly to access specified members.</p>
<p>So if you apply the &amp; bitwise logic to protectd &amp; internal, the natural conclution is what we both expected. That&#8217;s why i first thought of it as a bug.</p>
<p>Personaly I believe that it is a huge problem, and being forced to used a solution like yours is not very appealing thought usefull if it comes to that. </p>
<p>I should not be forced to use reflection nor by any means allow the consumer of my control understand that there are members that i have made tricks to protect from accessing.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Smith</title>
		<link>http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-11</link>
		<dc:creator>Josh Smith</dc:creator>
		<pubDate>Sat, 15 Dec 2007 22:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-11</guid>
		<description>Holy smokes!! This is really amazing stuff.  I agree with Karl, your blog is going to develop a cult-like following if you keep this up!  :)

Josh</description>
		<content:encoded><![CDATA[<p>Holy smokes!! This is really amazing stuff.  I agree with Karl, your blog is going to develop a cult-like following if you keep this up!  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Josh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Internal And Protected Virtual &#171; Andrew Smith</title>
		<link>http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-10</link>
		<dc:creator>Internal And Protected Virtual &#171; Andrew Smith</dc:creator>
		<pubDate>Sat, 15 Dec 2007 21:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-10</guid>
		<description>[...] Andrew Smith Random Thoughts about C#, VS, WinForms, WPF and .NET in General      &#171; Internal And&#160;Protected [...]</description>
		<content:encoded><![CDATA[<p>[...] Andrew Smith Random Thoughts about C#, VS, WinForms, WPF and .NET in General      &laquo; Internal And&nbsp;Protected [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Shifflett</title>
		<link>http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-8</link>
		<dc:creator>Karl Shifflett</dc:creator>
		<pubDate>Sat, 15 Dec 2007 10:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://agsmith.wordpress.com/2007/12/15/internal-and-protected/#comment-8</guid>
		<description>Andrew,

Deep, brother Deep!

Your blog will quickly get a huge following.

One problem.  Mole forget to read your work and by-passes the scope attributes to display &quot;hidden data&quot;.  :-)

Best to you,

Karl</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>Deep, brother Deep!</p>
<p>Your blog will quickly get a huge following.</p>
<p>One problem.  Mole forget to read your work and by-passes the scope attributes to display &#8220;hidden data&#8221;.  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Best to you,</p>
<p>Karl</p>
]]></content:encoded>
	</item>
</channel>
</rss>
