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 permissions, params Permission[] permission)

Parameters

permissions
System.Collections.Generic.ICollection{Weavy.Core.Models.Permission}
permission
Weavy.Core.Models.Permission[]

Returns

System.Boolean