コード例 #1
0
        /// <summary>
        /// Get the event information.
        /// </summary>
        /// <returns>
        /// It returns a <see cref="string"/> representing this KhronosLogEventArgs.
        /// </returns>
        public override string ToString()
        {
            if (Name != null && _LogContext != null)
            {
                return(_LogContext.ToString(Name, ReturnValue, Args));
            }

            return(_Comment ?? string.Empty);
        }
コード例 #2
0
 public override string ToString()
 {
     if (Name != null)
     {
         return(_LogContext.ToString(Name, ReturnValue, Args));
     }
     else
     {
         return(_Comment);
     }
 }