<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type='text/xsl' href='http://tarriniluca.spaces.live.com/mmm2008-07-24_12.50/rsspretty.aspx?rssquery=en-US;http%3a%2f%2ftarriniluca.spaces.live.com%2fcategory%2fC__x8%2ffeed.rss' version='1.0'?><rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msn="http://schemas.microsoft.com/msn/spaces/2005/rss" xmlns:live="http://schemas.microsoft.com/live/spaces/2006/rss" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Luca Tarrini: C#</title><description /><link>http://tarriniluca.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&amp;_c=BlogPart&amp;partqs=catC__x8</link><language>en-US</language><pubDate>Fri, 05 Sep 2008 15:36:05 GMT</pubDate><lastBuildDate>Fri, 05 Sep 2008 15:36:05 GMT</lastBuildDate><generator>Microsoft Spaces v1.1</generator><docs>http://www.rssboard.org/rss-specification</docs><ttl>60</ttl><cf:parentRSS>http://tarriniluca.spaces.live.com/blog/feed.rss</cf:parentRSS><live:type>blogcategory</live:type><live:identity><live:id>-1410873642649300581</live:id><live:alias>tarriniluca</live:alias></live:identity><cf:listinfo><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="typelabel" label="Type" /><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="tag" label="Tag" /><cf:group element="category" label="Category" /><cf:sort element="pubDate" label="Date" data-type="date" default="true" /><cf:sort element="title" label="Title" data-type="string" /><cf:sort ns="http://purl.org/rss/1.0/modules/slash/" element="comments" label="Comments" data-type="number" /></cf:listinfo><item><title>Explicit Interface Implementation</title><link>http://tarriniluca.spaces.live.com/Blog/cns!EC6B91E5AAED519B!872.entry</link><description>&lt;p&gt;&lt;font face=Calibri size=2&gt; &lt;/font&gt; 
&lt;p&gt;&lt;font face=Calibri size=2&gt;When a concrete type implements an interface implicitly, the interface methods also become part of the public contract of the concrete type itself. However, you might not always want the interface method implementations to become part of the public interface of the class that implements the interface. In this way I cannot access members through a class instance. When you need this behaviour in your own types, you can use the &lt;em&gt;explicit&lt;/em&gt; &lt;em&gt;interface implementation&lt;/em&gt; syntax. &lt;/font&gt;
&lt;p&gt;&lt;font face=Calibri size=2&gt;You have design three custom interfaces &lt;/font&gt;
&lt;p&gt;  
&lt;div&gt;&lt;a href="http://img329.imageshack.us/img329/2125/21073461vv8.jpg"&gt;&lt;font face=Calibri color="#000000" size=2&gt;&lt;img style="border-top-width:0px;border-left-width:0px;border-bottom-width:0px;border-right-width:0px" height=257 src="http://img329.imageshack.us/img329/2125/21073461vv8.jpg" width=348 border=0&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;font face=Calibri size=2&gt;Now you can look the explicit interface implementation:&lt;/font&gt; 
&lt;p&gt;&lt;font face=Calibri size=2&gt; &lt;/font&gt; 
&lt;div&gt;&lt;a href="http://img329.imageshack.us/img329/5301/97275980ko7.jpg"&gt;&lt;font face=Calibri color="#000000" size=2&gt;&lt;img style="border-top-width:0px;border-left-width:0px;border-bottom-width:0px;border-right-width:0px" height=298 src="http://img329.imageshack.us/img329/5301/97275980ko7.jpg" width=497 border=0&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;font face=Calibri size=2&gt;To access the required functionality, you make use of explicit casting: &lt;/font&gt;
&lt;p&gt;&lt;font face=Calibri size=2&gt;&lt;/font&gt;  
&lt;div&gt;&lt;a href="http://img329.imageshack.us/img329/4395/89033904cc9.jpg"&gt;&lt;font face=Calibri color="#000000" size=2&gt;&lt;img style="border-top-width:0px;border-left-width:0px;border-bottom-width:0px;border-right-width:0px" height=179 src="http://img329.imageshack.us/img329/4395/89033904cc9.jpg" width=376 border=0&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;font face=Calibri size=2&gt;Explicit interface implementation also allows the programmer to inherit two interfaces that share the same member names, as the example above.&lt;/font&gt; 
&lt;p&gt;&lt;font face=Calibri size=2&gt;Luca Tarrini&lt;/font&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-1410873642649300581&amp;page=RSS%3a+Explicit+Interface+Implementation&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=tarriniluca.spaces.live.com&amp;amp;GT1=tarriniluca"&gt;</description><comments>http://tarriniluca.spaces.live.com/Blog/cns!EC6B91E5AAED519B!872.entry#comment</comments><guid isPermaLink="true">http://tarriniluca.spaces.live.com/Blog/cns!EC6B91E5AAED519B!872.entry</guid><pubDate>Fri, 28 Mar 2008 00:29:46 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://tarriniluca.spaces.live.com/blog/cns!EC6B91E5AAED519B!872/comments/feed.rss</wfw:commentRss><wfw:comment>http://tarriniluca.spaces.live.com/Blog/cns!EC6B91E5AAED519B!872.entry#comment</wfw:comment><dcterms:modified>2008-04-02T10:03:41Z</dcterms:modified></item></channel></rss>