<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://soapitstop.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>.NET Flea Market - All Comments</title><link>http://soapitstop.com/blogs/fleamarket/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Coding4Fun Talk at TechEd</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx#244</link><pubDate>Wed, 11 Jun 2008 21:15:39 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:244</guid><dc:creator>Dan Fernandez's Blog</dc:creator><description>&lt;p&gt;At TechEd this year, I gave what can only be described as an overly ambitious talk given I only had 45&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=244" width="1" height="1"&gt;</description></item><item><title>re: Workplace Cruelty</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/08/workplace-cruelty.aspx#237</link><pubDate>Wed, 16 Apr 2008 01:27:20 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:237</guid><dc:creator>anachostic</dc:creator><description>&lt;p&gt;It took me a while to get some time to look into this again, but you do have an excellent point. &amp;nbsp;You cannot reassign the object itself unless it is passed ByRef. &amp;nbsp;Here&amp;#39;s the Q&amp;amp;D test I did:&lt;/p&gt;
&lt;p&gt;&lt;pre&gt;
Private Sub test()
	Dim a As New ItsAClass(&amp;quot;The Original text&amp;quot;)

	MsgBox(a.text)

	modifyClassByVal(a)
	MsgBox(a.text)

	modifyClassByRef(a)
	MsgBox(a.text)

End Sub

Private Sub modifyClassByVal(ByVal c As ItsAClass)
	c.text = &amp;quot;The text can be changed&amp;quot;
	c = New ItsAClass(&amp;quot;Can&amp;#39;t change this object&amp;quot;)
End Sub

Private Sub modifyClassByRef(ByRef c As ItsAClass)
	c.text = &amp;quot;The text will be lost when the new object is set.&amp;quot;
	c = New ItsAClass(&amp;quot;A new object&amp;quot;)
End Sub

Public Class ItsAClass
	Public text As String

	Public Sub New(ByVal t As String)
		Me.text = t
	End Sub

End Class
&lt;/pre&gt;&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=237" width="1" height="1"&gt;</description></item><item><title>re: Read the Zune Collection in .NET from Zune's own API</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx#236</link><pubDate>Sun, 13 Apr 2008 23:03:27 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:236</guid><dc:creator>sableholic</dc:creator><description>&lt;p&gt;Everytime I try and run the first three lines it deletes my ZuneStore.sdf file. Any idea why that happens? Could you post like a project file or vb file that I could download and try?&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=236" width="1" height="1"&gt;</description></item><item><title>Tips for speeding up the Zune software | Got Zune?</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/10/the-zune-application-is-guilty-of-flash-over-function-kick-it.aspx#228</link><pubDate>Mon, 31 Mar 2008 18:56:51 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:228</guid><dc:creator>Tips for speeding up the Zune software | Got Zune?</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Tips for speeding up the Zune software | Got Zune?&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=228" width="1" height="1"&gt;</description></item><item><title>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx#226</link><pubDate>Fri, 21 Mar 2008 06:19:40 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:226</guid><dc:creator>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx"&gt;soapitstop.com/.../read-the-zune-collection-in-net-from-zune-s-own-api.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=226" width="1" height="1"&gt;</description></item><item><title>re: Workplace Cruelty</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/08/workplace-cruelty.aspx#225</link><pubDate>Sun, 16 Mar 2008 02:01:32 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:225</guid><dc:creator>arunv</dc:creator><description>&lt;p&gt;Implement a method to swap two objects&lt;/p&gt;
&lt;p&gt;Sub Swap(ByVal Obj as Type1, ByVal Obj as Type2). &lt;/p&gt;
&lt;p&gt;This is will be a nice example to show, ByVal and ByRef &amp;nbsp;indeed have differences for class&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=225" width="1" height="1"&gt;</description></item><item><title>re: Workplace Cruelty</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/08/workplace-cruelty.aspx#223</link><pubDate>Fri, 14 Mar 2008 16:16:54 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:223</guid><dc:creator>pkr</dc:creator><description>&lt;p&gt;I'm not I agree 100% with you. It's the same old story as C/C++. ByVal for a class means you can't change the class e.g consider the following. &lt;/p&gt;
&lt;p&gt; private static void PassClassByRef(ref Class1 class1)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;class1 = new Class1();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private static void PassClassByVal(Class1 class1)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;class1 = new Class1(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;If you write out the hashcode of a quick test for this you get...&lt;/p&gt;
&lt;p&gt;start: 45653674&lt;/p&gt;
&lt;p&gt;after byval: 45653674&lt;/p&gt;
&lt;p&gt;after byref: 41149443&lt;/p&gt;
&lt;p&gt;start: 39785641&lt;/p&gt;
&lt;p&gt;after byref: 45523402&lt;/p&gt;
&lt;p&gt;after byval: 45523402&lt;/p&gt;
&lt;p&gt;Thus showing that the Byval prevents the inner function from changing the class itself rather than the state of the class as you have illustrated.&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=223" width="1" height="1"&gt;</description></item><item><title>Hidden Zune API&amp;#8217;s? &amp;raquo; D' Technology Weblog: Technology, Blogging, Tips, Tricks, Computer, Hardware, Software, Tutorials, Internet, Web, Gadgets, Fashion, LifeStyle, Entertainment, News and more by Deepak Gupta.</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx#220</link><pubDate>Tue, 04 Mar 2008 23:51:06 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:220</guid><dc:creator>Hidden Zune API’s? » D' Technology Weblog: Technology, Blogging, Tips, Tricks, Computer, Hardware, Software, Tutorials, Internet, Web, Gadgets, Fashion, LifeStyle, Entertainment, News and more by Deepak Gupta.</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Hidden Zune API&amp;amp;#8217;s? &amp;amp;raquo; D' Technology Weblog: Technology, Blogging, Tips, Tricks, Computer, Hardware, Software, Tutorials, Internet, Web, Gadgets, Fashion, LifeStyle, Entertainment, News and more by Deepak Gupta.&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=220" width="1" height="1"&gt;</description></item><item><title>MSDN Blog Postings  &amp;raquo; Hidden Zune API's?  Shhh, don't tell anyone</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx#219</link><pubDate>Tue, 04 Mar 2008 22:38:19 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:219</guid><dc:creator>MSDN Blog Postings  » Hidden Zune API's?  Shhh, don't tell anyone</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;MSDN Blog Postings &amp;nbsp;&amp;amp;raquo; Hidden Zune API's? &amp;nbsp;Shhh, don't tell anyone&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=219" width="1" height="1"&gt;</description></item><item><title>Hidden Zune API's?  Shhh, don't tell anyone</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx#218</link><pubDate>Tue, 04 Mar 2008 21:13:04 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:218</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;Over at SOA pit stop, they found a very interesting find that I didn&amp;amp;#39;t even know existed.&amp;amp;#160; Some&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=218" width="1" height="1"&gt;</description></item><item><title>Hidden Zune API's?  Shhh, don't tell anyone</title><link>http://soapitstop.com/blogs/fleamarket/archive/2008/03/03/read-the-zune-collection-in-net-from-zune-s-own-api.aspx#217</link><pubDate>Tue, 04 Mar 2008 20:24:45 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:217</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;Over at SOA pit stop, they found a very interesting find that I didn't even know existed.&amp;amp;#160; Some&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=217" width="1" height="1"&gt;</description></item><item><title>re: The Simple Sortable List for Databinding in DataGridViews</title><link>http://soapitstop.com/blogs/fleamarket/archive/2007/12/21/the-simple-sortable-list-for-databinding-in-datagridviews.aspx#207</link><pubDate>Sat, 09 Feb 2008 03:45:12 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:207</guid><dc:creator>anachostic</dc:creator><description>&lt;p&gt;First, make sure your listbox is set to sorted=true. &amp;nbsp;That's working for me..&lt;/p&gt;
&lt;p&gt;If you're working with a datagrid and you have the new item appearing at the bottom, try:&lt;/p&gt;
&lt;p&gt;If dgResults.SortedColumn IsNot Nothing Then dgResults.Sort(dgResults.SortedColumn, CType(IIf(dgResults.SortOrder = SortOrder.Ascending, ListSortDirection.Ascending, ListSortDirection.Descending), ListSortDirection))&lt;/p&gt;
&lt;p&gt;after adding the new item. &amp;nbsp;Your datagrid needs to be sorted for this to work.&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=207" width="1" height="1"&gt;</description></item><item><title>re: The Simple Sortable List for Databinding in DataGridViews</title><link>http://soapitstop.com/blogs/fleamarket/archive/2007/12/21/the-simple-sortable-list-for-databinding-in-datagridviews.aspx#204</link><pubDate>Thu, 07 Feb 2008 16:22:11 GMT</pubDate><guid isPermaLink="false">c84fe871-9be4-49f2-9abc-6118b8cda40a:204</guid><dc:creator>camainc</dc:creator><description>&lt;p&gt;THANK YOU!!!&lt;/p&gt;
&lt;p&gt;I've been searching for a couple of hours looking for this code. I found a C# version, but it uses anonymous delegates and stuff, and I'm not at that level yet.&lt;/p&gt;
&lt;p&gt;Your code works great. I'm using it for a data bound listbox right now. The only thing not working right is that when I insert a new item into the bindingsource, it sticks it onto the end, and not into the correct sort position.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;img src="http://soapitstop.com/aggbug.aspx?PostID=204" width="1" height="1"&gt;</description></item></channel></rss>