InternalsCannotBeUsedFrom(IQuery<IDeclaration>, Func<ReferencePredicateBuilder, ReferencePredicate>, string?, ReferenceKinds)
Reports a warning when any of the internal APIs of the current selection in used from a different context different than the one allowed, except if this concept has access to the type using inheritance rules.
Declaration
public static void InternalsCannotBeUsedFrom(this IQuery<IDeclaration> query, Func<ReferencePredicateBuilder, ReferencePredicate> predicate, string? description = null, ReferenceKinds referenceKinds = (ReferenceKinds)-1)Parameters
| Type | Name | Description |
|---|---|---|
| IQuery<IDeclaration> | query | |
| Func<ReferencePredicateBuilder, ReferencePredicate> | predicate | |
| string | description | |
| ReferenceKinds | referenceKinds |
InternalsCannotBeUsedFrom<TDeclaration>(IQuery<TDeclaration>, Func<ReferencePredicateBuilder, TDeclaration, ReferencePredicate>, string?, ReferenceKinds)
Reports a warning when any of the internal APIs of the current selection in used from a different context different than the one allowed, except if this concept has access to the type using inheritance rules. This overload supplies the selected declaration to the predicate.
Declaration
public static void InternalsCannotBeUsedFrom<TDeclaration>(this IQuery<TDeclaration> query, Func<ReferencePredicateBuilder, TDeclaration, ReferencePredicate> predicate, string? description = null, ReferenceKinds referenceKinds = (ReferenceKinds)-1) where TDeclaration : class, IDeclarationParameters
| Type | Name | Description |
|---|---|---|
| IQuery<TDeclaration> | query | |
| Func<ReferencePredicateBuilder, TDeclaration, ReferencePredicate> | predicate | |
| string | description | |
| ReferenceKinds | referenceKinds |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration |
InternalsCannotBeUsedFrom<TDeclaration, TTag>(ITaggedQuery<TDeclaration, TTag>, Func<ReferencePredicateBuilder, TDeclaration, TTag, ReferencePredicate>, string?, ReferenceKinds)
Reports a warning when any of the internal APIs of the current selection in used from a different context different than the one allowed, except if this concept has access to the type using inheritance rules. This overload supplies the selected declaration and the tag (added using WithTag<TTag>(Func<TDeclaration, TTag>)) to the predicate.
Declaration
public static void InternalsCannotBeUsedFrom<TDeclaration, TTag>(this ITaggedQuery<TDeclaration, TTag> query, Func<ReferencePredicateBuilder, TDeclaration, TTag, ReferencePredicate> predicate, string? description = null, ReferenceKinds referenceKinds = (ReferenceKinds)-1) where TDeclaration : class, IDeclarationParameters
| Type | Name | Description |
|---|---|---|
| ITaggedQuery<TDeclaration, TTag> | query | |
| Func<ReferencePredicateBuilder, TDeclaration, TTag, ReferencePredicate> | predicate | |
| string | description | |
| ReferenceKinds | referenceKinds |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | |
| TTag |