<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>FINALLY found a use of interfaces</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-760022/finally-found-a-use-of-interfaces</link>
		<description>Posts in the discussion thread &quot;FINALLY found a use of interfaces&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 19 Apr 2026 12:48:08 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-760022#post-1931171</guid>
				<title>FINALLY found a use for interfaces</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-760022/finally-found-a-use-of-interfaces#post-1931171</link>
				<description></description>
				<pubDate>Wed, 08 Jan 2014 22:00:03 +0000</pubDate>
				<wikidot:authorName>Emblis</wikidot:authorName>				<wikidot:authorUserId>1671135</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>So far in my experience I have not had any use of interfaces in c#. Mostly due to the fact that I can easily achieve what I want by using overloading or delegates.</p> <p>For the past week I have been working hard to extend my basic XNA User Interface (not to be confused with c# interface) for more functionality. My biggest problem was that I wanted a tooltip window, one of those small things that appears when you hover your mouse over something and extra info appears. This proved to be a major pain since I wanted everything in my game to support this, even classes with nothing in common.</p> <p>And suddenly I find out that I can do</p> <div class="code"> <div class="hl-main"> <pre><span class="hl-reserved">if</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-identifier">ThisObject</span><span class="hl-code"> </span><span class="hl-identifier">is</span><span class="hl-code"> </span><span class="hl-identifier">ItooltipInterface</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"> </span><span class="hl-comment">//Run code to generate tooltip box for ThisObject</span><span class="hl-code"> </span><span class="hl-brackets">}</span></pre></div> </div> <p>I know it is a bit stupid posting something simple like this, but it has been a long time since I had a real &quot;Eureka!&quot; with c# and it saved me allot of headaches.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>