fix build issue in coreclr
This commit is contained in:
parent
5f47546d40
commit
7666d5973f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue