/// <summary> /// The check. /// </summary> /// <param name="permissions"> /// The permissions. /// </param> /// <param name="permission"> /// The permission. /// </param> /// <returns> /// The check. /// </returns> public static bool Check([NotNull] this IPermissions permissions, int permission) { CodeContracts.VerifyNotNull(permissions, "permissions"); return(permissions.Check((ViewPermissions)permission)); }