public static IAuditLogObject GetAuditLogObject(object obj, out bool usesReflection) { var auditLogObj = obj as IAuditLogObject; usesReflection = auditLogObj == null && !Reflector.HasToString(obj) && !AuditLogToStringHelper.IsKnownType(obj); return(auditLogObj ?? new AuditLogObject(obj)); }
public static IAuditLogObject GetAuditLogObject(object obj, int?decimalPlaces, out bool usesReflection) { var auditLogObj = obj as IAuditLogObject; usesReflection = auditLogObj == null && !Reflector.HasToString(obj) && !AuditLogToStringHelper.IsKnownType(obj); return(auditLogObj ?? new AuditLogObject(obj, decimalPlaces, SrmDocument.DOCUMENT_TYPE.none)); }