Skip to content

Could not create custom conjunctions anymore #453

@NielsApebs

Description

@NielsApebs

Hi

I created some Extension-Methods in my Project so i could define new Conjunctions like these:

    public static TConjunction AreNone<TConjunction, TRuleType>(
        this GivenTypesThat<TConjunction, TRuleType> givenTypes)
        where TConjunction : GivenTypesConjunction
        where TRuleType : IType
        =>
        givenTypes.AreNot(ArchRuleDefinition.Types());

    public static TConjunction AreConstructors<TConjunction, TRuleType>(
        this GivenMembersThat<TConjunction, TRuleType> givenMembers)
        where TConjunction : GivenMembersConjunction
        where TRuleType : IMember
        =>
        givenMembers.HaveName(".ctor");

    ...

Sadly, after updating from 0.13.1 to 0.13.2 these Extensions are not working anymore, cause there is an issue with GivenTypesThat and GivenMembersThat, regarding their generics. My Compiler says, they would not use generics...

This may not be an issue, cause you may not intend the creation of extension methods for custom conjunctions, but i would like to know how i could adapt to your new version to use this option of creating my own conjunctions.

thanks regards
Niels

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIndicates that an issue needs to be categorized.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions