CR feedback

This commit is contained in:
Ryan Nowak 2014-02-11 11:55:02 -08:00
parent 179841743e
commit 5ee991cf61
2 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,11 @@ namespace Microsoft.AspNet.Routing {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
#if NET45
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Routing.Resources", typeof(Resources).Assembly);
#else
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Routing.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly);
#endif
resourceMan = temp;
}
return resourceMan;

View File

@ -59,7 +59,7 @@ namespace Microsoft.AspNet.Routing.Template
var part = routeSegment.Parts[0];
if (part.IsLiteral)
{
if (!part.Text.Equals(requestSegment, StringComparison.OrdinalIgnoreCase))
if (!string.Equals(part.Text, requestSegment, StringComparison.OrdinalIgnoreCase))
{
return null;
}