<?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 - VB Generics</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 - VB Generics</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>Wed, 22 May 2013 02:22:01 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 02:22:01 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>1</c9:totalResults>
	<c9:pageCount>-1</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - VB Generics</title>
		<description><![CDATA[<p>I'm surprised how many people don't realize that we (and by we I mean VB) have full generic support in Whidbey. We can consume, author, and use constraints. I just answered an internal email where someone was wondering how this all worked&nbsp;and I figured this
 info would be useful to all you Channel9 types.<br />&nbsp;<br /><strong>Variables<br /></strong>Imports System.Collections.Generic<br /><br />Dim foo as New List(Of String)<br />Dim bar as New Dictionary(Of String, String)<br /><br /><strong>Functions<br /></strong>Module Test<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;Public Sub Foo(Of T)(ByVal param As T)<br />&nbsp;&nbsp;&nbsp;End Sub<br /><br />&nbsp;&nbsp;&nbsp;Public Sub Bar()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim x as String<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' call explictly the one you want<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Foo(Of String)(x)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' or let the compiler do it for you<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Foo(x) '&nbsp;same as&nbsp;above<br />&nbsp;&nbsp;&nbsp;End Sub<br /><br />End Module<br /><br /><strong>Classes<br /></strong>Public Class Foo(Of G,E,N,E,R,I,C,S)<br />End Class<br /><br />or<br /><br />Public Class Foo(Of T As IEnumerable)<br />End Class<br /><br />Happy Coding (especially if it's in VB <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' />)</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/5185-VB-Generics/5185#5185</link>
		<pubDate>Thu, 29 Apr 2004 22:54:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/5185-VB-Generics/5185#5185</guid>
		<dc:creator>Mike Sampson</dc:creator>
		<slash:comments>1</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Sampy/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>