private static bool IsAuditable(MemberInfo memberInfo) { Object[] myAttributes = memberInfo.GetCustomAttributes(true); if (myAttributes.Length > 0) { foreach (object attr in myAttributes) { if (attr.GetType().ToString().EndsWith("HraAttribute")) { HraAttribute attribute = (HraAttribute)attr; if (attribute.auditable) { return(true); } } } } return(false); }
public static bool DoesAffectRiskProfile(MemberInfo memberInfo) { Object[] myAttributes = memberInfo.GetCustomAttributes(true); if (myAttributes.Length > 0) { foreach (object attr in myAttributes) { if (attr.GetType().ToString().EndsWith("HraAttribute")) { HraAttribute attribute = (HraAttribute)attr; if (attribute.affectsRiskProfile) { return(true); } } } } return(false); }
private static bool IsPersistable(MemberInfo memberInfo) { Object[] myAttributes = memberInfo.GetCustomAttributes(true); if (myAttributes.Length > 0) { foreach (object attr in myAttributes) { if (attr.GetType() == typeof(HraAttribute)) { HraAttribute attribute = (HraAttribute)attr; if (attribute.persistable) { return(true); } } } } return(false); }