tag:blogger.com,1999:blog-6628985022531866193.post7928474384681363651..comments2024-02-12T17:37:05.629+00:00Comments on The OldWood Thing: Value Type or Reference Type? An Acid TestChris Oldwoodhttp://www.blogger.com/profile/18183909440298909448noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6628985022531866193.post-45047612360095622522013-09-25T20:50:32.546+01:002013-09-25T20:50:32.546+01:00@Anonymous: Thanks for the link but this only desc...@Anonymous: Thanks for the link but this only describes the technical differences of "pure" value types like ints, it does not address the "reference type with value semantics" types like a string.<br /><br />"Variables of value types directly contain their data, whereas variables of reference types store references to their data"<br /><br />A KeyValuePair<> fails the "value" test under this rule and yet it has value semantics if the pair of contained values has it, and yet they can be held as references, e.g. strings.Chris Oldwoodhttps://www.blogger.com/profile/18183909440298909448noreply@blogger.comtag:blogger.com,1999:blog-6628985022531866193.post-67338017920512498542013-09-25T15:11:26.105+01:002013-09-25T15:11:26.105+01:00Check out Difference Between Value Type and Refer...Check out <a href="http://codetonics.blogspot.com/2013/09/c-value-type-vs-reference-type.html" rel="nofollow"> Difference Between Value Type and Reference Type in C# </a>Anonymousnoreply@blogger.com