<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="C Sharp 3.0 - Page 8 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=C_Sharp_3.0&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=C_Sharp_3.0&amp;p=9">3.Next</a>
</p>
<p>of the properties is inferred by the compiler.</p>

<p><syntaxhighlight lang="csharp">var x = new { FirstName = "John", LastName = "Doe" };</syntaxhighlight></p>

<p>Anonymous types are <a href="page.php?w=reference_type">reference type</a>s that derive directly from object. The compiler gives them a name although your application cannot access it. From the perspective of the common language runtime, an anonymous type is no different from any other reference type, except that it cannot be cast to any type except for object. </p>

<p>If two or</p><p>
<a accesskey="1" href="page.php?w=C_Sharp_3.0&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=C_Sharp_3.0&amp;p=9">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
