Example #1
0
        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));
        }
Example #2
0
        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));
        }