title: How to pass custom data to a Partial View in ASP.NET Core using ViewDataDictionary
body: <p>I am trying to pass custom data to a Partial View using an instance of  ViewDataDictionary</p>
  
  <p>In prior versions the following code worked </p>
  
  <p>@Html.Partial("PartialName", new ViewDataDictionary { { "key", "value" }})</p>
  
  <p>but not in ASP.NET Core.</p>
  
  <p>I have read the documentation but I cannot figure out how to create a working example.</p>