fix build issue in coreclr
This commit is contained in:
parent
5f47546d40
commit
7666d5973f
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Reflection;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
|
|
||||||
namespace BasicWebSite
|
namespace BasicWebSite
|
||||||
|
|
@ -20,7 +21,7 @@ namespace BasicWebSite
|
||||||
{
|
{
|
||||||
if (actualType != null && service.GetType().AssemblyQualifiedName == actualType)
|
if (actualType != null && service.GetType().AssemblyQualifiedName == actualType)
|
||||||
{
|
{
|
||||||
var orderProperty = elementType.GetProperty("Order");
|
var orderProperty = elementType.GetTypeInfo().GetDeclaredProperty("Order");
|
||||||
return (int)orderProperty.GetValue(service);
|
return (int)orderProperty.GetValue(service);
|
||||||
}
|
}
|
||||||
else if (actualType == null)
|
else if (actualType == null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue