示例#1
0
 public bool HasOverride(Member abstractMember)
 {
     if (!abstractMember.IsAbstract)
         return false;
     var memberComparer = new MemberComparer();
     // check if we have a member with the same signature
     // but with the override keyword
     var sameMembers = MembersFromThisAndBase
         .Where(x => x.IsOverride)
         .Where(x => !x.IsAbstract)
         .Where(x => memberComparer.IsSameAs(x, abstractMember));
     return sameMembers.Any();
 }
示例#2
0
 public virtual bool IsSameAs(Member first, Member second)
 {
     return IsEqual((dynamic)first, (dynamic)second);
 }
示例#3
0
 protected virtual bool IsEqual(Member first, Member second)
 {
     return false;
 }