zoukankan      html  css  js  c++  java
  • DNN学习笔记代码学习:LogDetailInfo 荣

    using System;
    using System.Xml.Serialization;

    namespace WebApplication1
    {
     /// <summary>
     /// 某Log的一条信息的名称和值,Tostring返回一条语句。
     /// </summary>
     [XmlRoot("property")]
     public class LogDetailInfo
     {
      /// <summary>
      /// 名称。
      /// </summary>
      private string _PropertyName;

      /// <summary>
      /// 值。
      /// </summary>
      private string _PropertyValue;

      public LogDetailInfo() : this("", "")
      {
      }

      public LogDetailInfo(string name, string Value)
      {
       _PropertyName = name;
       _PropertyValue = Value;
      }

      [XmlElement("name")]
      public string PropertyName
      {
       get
       {
        return _PropertyName;
       }
       set
       {
        _PropertyName = value;
       }
      }

      [XmlElement("value")]
      public string PropertyValue
      {
       get
       {
        return _PropertyValue;
       }
       set
       {
        _PropertyValue = value;
       }
      }

      /// <summary>
      /// 返回名值对的字符串。
      /// </summary>
      /// <returns></returns>
      public override string ToString()
      {
       return "<b>" + PropertyName + "</b>;" + PropertyValue + ";&nbsp;";
      }

     }
    }

  • 相关阅读:
    0621回顾与总结
    0614--演示
    学习进度条
    实验四主存空间的分配和回收
    学术诚信和职业道德
    《构建之法》读第六、第七章有感
    0422 Step2-FCFS调度
    java 版的复利计算器(张俊毅 周修文)
    复利程序(c语言)(张俊毅 周修文)
    《构建之法》第4章
  • 原文地址:https://www.cnblogs.com/admin11/p/194094.html
Copyright © 2011-2022 走看看