NLog.Targets.Target.ToString C# (CSharp) Method

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string
        public override string ToString()
        {
            var targetAttribute = GetType().GetAttribute<TargetAttribute>();
            if (targetAttribute != null)
            {
                return targetAttribute.Name + " Target[" + (this.Name ?? "(unnamed)") + "]";
            }

            return this.GetType().Name;
        }