private bool IsEqualGeneric(IOccurence occurence) { var reference = ((ReferenceOccurence)occurence).PrimaryReference; var elementTypeParams = TypeParameterUtil.GetResolvedTypeParams(reference.CurrentResolveResult.Result); return(new GenericSequenceEqualityComparer().Equals(elementTypeParams, _originTypeParams)); }
private static IEnumerable <IEnumerable <IDeclaredType> > GetTypeParametersFromTypes(IEnumerable <IDeclaredType> types) { return(types.Select(x => TypeParameterUtil.GetResolvedTypeParams(x.Resolve()))); }