title: ASP.NET MVC 3 RC - Razor "View" Property
body: <p>Just mucking around with Razor in the ASP.NET MVC 3 RC released today.</p>
  
  <p>Now, we have a concept of a "Layout Page", which i presume is the replacement of the "View Master" in the ASPX view engine.</p>
  
  <p>But i do not understand the "View" property of the layout page.</p>
  
  <p>Here is the example which is created when you create a new Razor View:</p>
  
  <p><strong>_Layout.cshtml</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
     &lt;title&gt;@View.Title&lt;/title&gt;
  </code></pre>
  
  <p>...</p>
  
  <p><strong>MyView.cshtml</strong></p>
  
  <pre><code>@model Mvc3FunParty.Models.Post
  
  @{
     View.Title = "Some Title";
     Layout = "~/Views/Shared/_Layout.cshtml";
  }
  </code></pre>
  
  <p>Which results in "Some Title" being inserted into the <code>&lt;title&gt;</code> tag of the rendered HTML.</p>
  
  <p>How on earth does this work? When i hover over the "View" property, it's of type "<strong>dynamic</strong>".</p>
  
  <p>So what exactly should this property be used for? 
  Can we stuff anything in there? Is this supposed to be the Razor implementation of ViewData? </p>
  
  <p>And if so, shouldn't it be of type "<strong>ViewDataDictionary</strong>"? Why the "<strong>dynamic</strong>" type for the View property?</p>