c#6新特性-插补字符串

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lenkty/article/details/78005582
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


/// <summary>
/// LogMessage 的摘要说明
/// </summary>
public class LogMessage
{
    //
    // TODO: 在此处添加构造函数逻辑
    //

    public int nId { set; get; }

    public DateTime dtDate { set; get; }

    public string sThread { set; get; }

    public string sLevel { set; get; }

    public string sLogger { set; get; }

    public Exception sException { set; get; }

    public string mark { set; get; }

    public override string ToString()
    {
        return $"nId: {nId}, dtDate: {dtDate}, sThread: {sThread}, sLevel: {sLevel}, sLogger: {sLogger}, sException: {sException}, mark: {mark}";
    }

}


--任何问题沟通请发送邮件到:[email protected]或加入qq群594096777讨论。

猜你喜欢

转载自blog.csdn.net/lenkty/article/details/78005582