fix build issue in coreclr

This commit is contained in:
Ryan Nowak 2014-10-15 17:32:06 -07:00
parent 5f47546d40
commit 7666d5973f
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.AspNet.Mvc;
namespace BasicWebSite
@ -20,7 +21,7 @@ namespace BasicWebSite
{
if (actualType != null && service.GetType().AssemblyQualifiedName == actualType)
{
var orderProperty = elementType.GetProperty("Order");
var orderProperty = elementType.GetTypeInfo().GetDeclaredProperty("Order");
return (int)orderProperty.GetValue(service);
}
else if (actualType == null)