<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>BenkoBLOG : Framework Master Class</title><link>http://blogs.msdn.com/benko/archive/tags/Framework+Master+Class/default.aspx</link><description>Tags: Framework Master Class</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>LINQ to XML Code Posted!</title><link>http://blogs.msdn.com/benko/archive/2007/09/19/linq-to-xml-code-posted.aspx</link><pubDate>Wed, 19 Sep 2007 17:52:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4997659</guid><dc:creator>benko</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benko/comments/4997659.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benko/commentrss.aspx?PostID=4997659</wfw:commentRss><wfw:comment>http://blogs.msdn.com/benko/rsscomments.aspx?PostID=4997659</wfw:comment><description>&lt;p&gt;I just posted the code from Monday's webcast on &lt;a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032349380&amp;amp;EventCategory=4&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;Linq to XML&lt;/a&gt;. Registered users can access the code from the download site on &lt;a href="http://www.Benkotips.com"&gt;http://www.Benkotips.com&lt;/a&gt;. In the webcast we covered a lot of topics including how to create XML fragments in both VB and C#, and also how to query. The key to querying is to work against the new collection of XML classes including XDocument and XElement. We created a customer list in XML from a SQL Server database and then saved the results to file. Then we loaded the file into an XElement and ran a LINQ query against it.
&lt;/p&gt;&lt;p&gt;So if that's what you're looking for, &lt;a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032349380&amp;amp;EventCategory=4&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;check out the webcast&lt;/a&gt;. For more info on the complete series check out &lt;a href="http://www.BenkoTIPS.com/fmc"&gt;http://www.BenkoTIPS.com/fmc&lt;/a&gt;.
&lt;/p&gt;&lt;p&gt;Enjoy!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4997659" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benko/archive/tags/Framework+Master+Class/default.aspx">Framework Master Class</category><category domain="http://blogs.msdn.com/benko/archive/tags/Webcasts/default.aspx">Webcasts</category><category domain="http://blogs.msdn.com/benko/archive/tags/LINQ/default.aspx">LINQ</category></item><item><title>Question from today’s webcast – What’s the difference between Partial Methods &amp;amp;amp; Virtual Methods?</title><link>http://blogs.msdn.com/benko/archive/2007/09/10/question-from-today-s-webcast-what-s-the-difference-between-partial-methods-virtual-methods.aspx</link><pubDate>Tue, 11 Sep 2007 00:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4856572</guid><dc:creator>benko</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benko/comments/4856572.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benko/commentrss.aspx?PostID=4856572</wfw:commentRss><wfw:comment>http://blogs.msdn.com/benko/rsscomments.aspx?PostID=4856572</wfw:comment><description>&lt;P&gt;&lt;SPAN style="COLOR: #1f497d"&gt;In today's &lt;A href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?culture=en-US&amp;amp;EventID=1032349364&amp;amp;CountryCode=US" mce_href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?culture=en-US&amp;amp;EventID=1032349364&amp;amp;CountryCode=US"&gt;&lt;/A&gt;&lt;/SPAN&gt;webcast on LINQ to SQL&lt;SPAN style="COLOR: #1f497d"&gt; we had a lot of questions. One had to do with understanding Partial Methods. The main difference between a virtual method (think OO) and partial methods (in 3.5) is that virtual methods can be implemented by various descendents differently based on what type of object you're working with. Think of an Animal object having an Eat method. This would be implemented differently for a Fish object than a Horse. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR: #1f497d"&gt;Unlike virtual methods you partial methods can be implemented only once. They are a sort of hook that you can choose to use and if not they are optimized away from the compiled code. This allows you to extend the functionality of a class with your own behavior. In LINQ to SQL the object mapping layer provides a collection of events that are implemented as partial methods. In this way we were able to run our custom logic when the company name changed. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR: #1f497d"&gt;Great question! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR: #1f497d"&gt;Mike&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4856572" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benko/archive/tags/Framework+Master+Class/default.aspx">Framework Master Class</category><category domain="http://blogs.msdn.com/benko/archive/tags/Webcasts/default.aspx">Webcasts</category><category domain="http://blogs.msdn.com/benko/archive/tags/LINQ/default.aspx">LINQ</category></item><item><title>LINQ to SQL Webcast Code</title><link>http://blogs.msdn.com/benko/archive/2007/09/10/linq-to-sql-webcast-code.aspx</link><pubDate>Mon, 10 Sep 2007 23:36:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4856284</guid><dc:creator>benko</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benko/comments/4856284.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benko/commentrss.aspx?PostID=4856284</wfw:commentRss><wfw:comment>http://blogs.msdn.com/benko/rsscomments.aspx?PostID=4856284</wfw:comment><description>&lt;p&gt;I've posted the &lt;a href="http://www.benkotips.com/Default.aspx?tabid=628"&gt;code from today's webcast&lt;/a&gt; on LINQ to SQL 
&lt;/p&gt;&lt;p&gt;Enjoy!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4856284" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benko/archive/tags/Framework+Master+Class/default.aspx">Framework Master Class</category><category domain="http://blogs.msdn.com/benko/archive/tags/Webcasts/default.aspx">Webcasts</category><category domain="http://blogs.msdn.com/benko/archive/tags/LINQ/default.aspx">LINQ</category></item></channel></rss>