Permalink
Browse files

Use equals.

  • Loading branch information...
mkrueger committed Jun 27, 2011
1 parent 5c398f2 commit cf8a4120d43da0b80f65383771225994c5b73172
Showing with 1 addition and 1 deletion.
  1. +1 −1 ICSharpCode.NRefactory/CSharp/Resolver/MemberLookup.cs
@@ -99,7 +99,7 @@ bool IsInternalAccessible(IProjectContent declaringProject)
bool IsProtectedAccessible(ITypeDefinition declaringType)
{
- if (declaringType == currentTypeDefinition)
+ if (declaringType.Equals (currentTypeDefinition))
return true;
// PERF: this might hurt performance as this method is called several times (once for each member)
// make sure resolving base types is cheap (caches?) or cache within the MemberLookup instance

0 comments on commit cf8a412

Please sign in to comment.