private static IsSeveralAllowed ( AcErrorType errorType ) : bool | ||
errorType | AcErrorType | |
return | bool |
private static bool IsSeveralAllowed(AcErrorType errorType) {
var type = typeof(AcErrorType);
var memInfo = type.GetMember(errorType.ToString());
return memInfo[0].GetCustomAttributes(typeof(SeveralAllowedAttribute), false).Length > 0;
}