Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Compare assembly name using string.Equals
Browse files Browse the repository at this point in the history
  • Loading branch information
troydai committed Apr 9, 2015
1 parent 66183a1 commit adf6424
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -125,7 +126,7 @@ private IEnumerable<string> GetAssemblyDependencies(string assemblyName)
private bool VisitAssembly(string assemblyName, IEnumerable<string> ancestors)
{
// determine if keep walking down the path
if (ancestors.Any(a => a == assemblyName))
if (ancestors.Any(a => string.Equals(a, assemblyName, StringComparison.Ordinal)))
{
// break the reference loop
return false;
Expand Down

0 comments on commit adf6424

Please sign in to comment.