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;";
      }

     }
    }

  • 相关阅读:
    iOS----------WKWebView修改userAgent
    Vmware路由配置
    【手机APP开发】指南
    【Git】git 指南
    【微信小程序开发】阮一峰老师的微信小程序开发入门教程——学起来~
    【vue】2-Keycode对照表
    【vue】1-vue简介与基础
    Meaning
    数据增强
    Dropout
  • 原文地址:https://www.cnblogs.com/admin11/p/194094.html
Copyright © 2011-2022 走看看