CollectionExtensions.ContainsAny Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ContainsAny(ICollection, Permission[])

Extension method to check if a list of permissions contains any of the the specified permissions.

public static bool ContainsAny(this ICollection<Permission> permissions, params Permission[] permission)

Parameters

permissions
System.Collections.Generic.ICollection

The permissions to look in.

permission
Weavy.Core.Models.Permission[]

The permission to find.

Returns

bool