/// <summary> /// Get access check result as a specific access. /// </summary> /// <returns>The specific access results.</returns> public AccessCheckResult <U> ToSpecificAccess <U>() where U : Enum { return(new AccessCheckResult <U>(Status, GrantedAccess, GenericGrantedAccess, PrivilegesRequired, GrantedAccess.ToSpecificAccess <U>(), GenericGrantedAccess.ToSpecificAccess <U>(), ObjectType, Name, GenerateOnClose, Level)); }