Beispiel #1
0
        public override bool IsReferenceTo(IEntity entity)
        {
            IClass c = entity as IClass;

            if (c != null)
            {
                IMethod m = resolvedMember as IMethod;
                return(m != null && m.IsConstructor &&
                       m.DeclaringType.FullyQualifiedName == c.FullyQualifiedName &&
                       m.DeclaringType.TypeParameters.Count == c.TypeParameters.Count);
            }
            else
            {
                return(MemberLookupHelper.IsSimilarMember(resolvedMember, entity as IMember));
            }
        }
Beispiel #2
0
 public override bool IsReferenceTo(IEntity entity)
 {
     return(MemberLookupHelper.IsSimilarMember(GetMethodIfSingleOverload(), entity as IMember));
 }