<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Uncommon C# : Using C style unions in C#</title>
	<atom:link href="http://www.dijksterhuis.org/uncommon-style-unions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dijksterhuis.org/uncommon-style-unions/</link>
	<description>Information, news about programming in C#</description>
	<lastBuildDate>Sun, 21 Feb 2010 16:48:33 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gareth</title>
		<link>http://www.dijksterhuis.org/uncommon-style-unions/comment-page-1/#comment-340</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Mon, 23 Feb 2009 11:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dijksterhuis.org/?p=672#comment-340</guid>
		<description>Was using LayoutKind.Explicit the other day, whilst coding up a struct which held a PCX Image Header. Was thinking I could load the header into a byte array sitting at FieldOffset 0, and then have relevant fields such as XMax, YMax etc. populated according to their corresponding field offsets.

Alas, you can&#039;t use reference types like a byte array with LayoutKind.Explicit! (It&#039;ll compile it for you, though). Makes sense when you think about it, but was annoying all the same.</description>
		<content:encoded><![CDATA[<p>Was using LayoutKind.Explicit the other day, whilst coding up a struct which held a PCX Image Header. Was thinking I could load the header into a byte array sitting at FieldOffset 0, and then have relevant fields such as XMax, YMax etc. populated according to their corresponding field offsets.</p>
<p>Alas, you can&#8217;t use reference types like a byte array with LayoutKind.Explicit! (It&#8217;ll compile it for you, though). Makes sense when you think about it, but was annoying all the same.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
