Пример #1
0
        public override string ToString()
        {
            var buffer = new StringBuilder();

            if (_message != null)
            {
                buffer.Append(_message).Append(" | ");
            }

            if (_oldCi.ClassInfoId != _newCi.ClassInfoId)
            {
                buffer.Append("old class=").Append(_oldCi.FullClassName).Append(" | new class=").Append(_newCi.FullClassName);
            }
            else
            {
                buffer.Append("class=").Append(_oldCi.FullClassName);
            }

            buffer.Append(" | field=").Append(_oldCi.GetAttributeInfo(_fieldIndex).GetName());
            buffer.Append(" | old=").Append(_oldValue).Append(" | new=").Append(_newValue);
            buffer.Append(" | obj. hier. level=").Append(_objectRecursionLevel);

            return(buffer.ToString());
        }