示例#1
0
        private bool IsEqualGeneric(IOccurence occurence)
        {
            var reference         = ((ReferenceOccurence)occurence).PrimaryReference;
            var elementTypeParams = TypeParameterUtil.GetResolvedTypeParams(reference.CurrentResolveResult.Result);

            return(new GenericSequenceEqualityComparer().Equals(elementTypeParams, _originTypeParams));
        }
示例#2
0
 private static IEnumerable <IEnumerable <IDeclaredType> > GetTypeParametersFromTypes(IEnumerable <IDeclaredType> types)
 {
     return(types.Select(x => TypeParameterUtil.GetResolvedTypeParams(x.Resolve())));
 }