<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/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>Passing objects in Visual Studio 2003</title><link>https://www.dotnetzone.gr:443/cs/blogs/zeons/archive/2006/05/24/13237.aspx</link><description>Ok we know that when passing "byVal" in methods strings, booleans e.t.c their values do not change, but when passing "ByRef" they do change. However when passing objects it does not matter if we pass it "ByVal" or "ByRef". Either way the object changes!!</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Passing objects in Visual Studio 2003</title><link>https://www.dotnetzone.gr:443/cs/blogs/zeons/archive/2006/05/24/13237.aspx#13264</link><pubDate>Thu, 25 May 2006 00:48:06 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:13264</guid><dc:creator>cap</dc:creator><description>That happens because the &amp;quot;value&amp;quot; passed is essentially a copy of the pointer to the object's memory location. In other words, the object in your example is a &amp;quot;reference type&amp;quot;. (FYI, the only types that byval actually creates copies for are value types - integers, booleans, dates - but NOT strings or class types). &lt;br&gt;&lt;br&gt;So when you pass an object (a reference type) byval, something gets copied - but what gets copied is the pointer to the object, not the object itself. In order to actually copy an object you have to create a deep clone of it - that is, a copy of the object itself and all the objects it contains.&lt;br&gt;&lt;br&gt;To conclude, we've got value types and reference types. When you pass a reference type, a copy of the type is never made - so there is practically little difference between passing it byval or byref - the object does change if you change it. &lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Απ: Passing objects in Visual Studio 2003</title><link>https://www.dotnetzone.gr:443/cs/blogs/zeons/archive/2006/05/24/13237.aspx#13331</link><pubDate>Fri, 26 May 2006 02:06:29 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:13331</guid><dc:creator>dt008</dc:creator><description>If we pass an object(pointer) by reference,we are then able to change the object that this pointer points to, so that it points to another object in memory. That cannot happen if we pass the pointer by value.</description></item><item><title>Videos: Passing a Reference Type ByVal &amp;amp;amp; Passing Strings ByVal</title><link>https://www.dotnetzone.gr:443/cs/blogs/zeons/archive/2006/05/24/13237.aspx#13381</link><pubDate>Sat, 27 May 2006 09:24:53 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:13381</guid><dc:creator>Sotiris Filippidis' Weblog</dc:creator><description>Με αφορμή τη δημοσίευση Passing Objects in Visual Studio 2003 που έγινε στο blog του Zeon,&amp;amp;amp;nbsp;έφτιαξα...</description></item><item><title>Videos: Passing a Reference Type ByVal / Passing Strings ByVal</title><link>https://www.dotnetzone.gr:443/cs/blogs/zeons/archive/2006/05/24/13237.aspx#13382</link><pubDate>Sat, 27 May 2006 09:25:13 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:13382</guid><dc:creator>Sotiris Filippidis' Weblog</dc:creator><description>Με αφορμή τη δημοσίευση Passing Objects in Visual Studio 2003 που έγινε στο blog του Zeon,&amp;amp;amp;nbsp;έφτιαξα...</description></item><item><title>Videos: Passing a Reference Type ByVal / Passing Strings ByVal</title><link>https://www.dotnetzone.gr:443/cs/blogs/zeons/archive/2006/05/24/13237.aspx#37024</link><pubDate>Wed, 07 Nov 2007 20:37:52 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37024</guid><dc:creator>Sotiris Filippidis' Weblog</dc:creator><description>&lt;p&gt;Με αφορμή τη δημοσίευση Passing Objects in Visual Studio 2003 που έγινε στο blog του Zeon , έφτιαξα δύο&lt;/p&gt;
</description></item><item><title>re: Passing objects in Visual Studio 2003</title><link>https://www.dotnetzone.gr:443/cs/blogs/zeons/archive/2006/05/24/13237.aspx#72212</link><pubDate>Thu, 28 Feb 2013 03:25:05 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:72212</guid><dc:creator>Elsmani</dc:creator><description>&lt;p&gt;I think you've just captured the asnewr perfectly&lt;/p&gt;</description></item></channel></rss>