From 7666d5973f036662981d7117879f6cf4814ddfb3 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 15 Oct 2014 17:32:06 -0700 Subject: [PATCH] fix build issue in coreclr --- test/WebSites/BasicWebSite/Controllers/OrderController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/WebSites/BasicWebSite/Controllers/OrderController.cs b/test/WebSites/BasicWebSite/Controllers/OrderController.cs index d61d02d82b..3d9208c128 100644 --- a/test/WebSites/BasicWebSite/Controllers/OrderController.cs +++ b/test/WebSites/BasicWebSite/Controllers/OrderController.cs @@ -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)