⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tagattribute.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Utils.TagParser
{
    using System;
    using System.ComponentModel;

    public class TagAttribute
    {
        protected string mName;
        protected string mValue;

        public TagAttribute()
        {
            this.mName = "Unnamed";
            this.mValue = "";
        }

        public TagAttribute(string name, string value)
        {
            this.mName = name;
            this.mValue = value;
        }

        public override string ToString()
        {
            if (this.mValue == null)
            {
                return this.mName;
            }
            return (this.mName + "=\"" + this.mValue + "\"");
        }

        [Description("The HTML to represent this attribute"), Category("Output")]
        public string HTML
        {
            get
            {
                if (this.mValue == null)
                {
                    return this.mName;
                }
                return (this.mName + "=\"" + TagEncoder.EncodeValue(this.mValue) + "\"");
            }
        }

        [Description("The name of the attribute"), Category("General")]
        public string Name
        {
            get
            {
                return this.mName;
            }
            set
            {
                this.mName = value;
            }
        }

        [Description("The value of the attribute"), Category("General")]
        public string Value
        {
            get
            {
                return this.mValue;
            }
            set
            {
                this.mValue = value;
            }
        }

        [Category("Output"), Description("The XHTML to represent this attribute")]
        public string XHTML
        {
            get
            {
                if (this.mValue == null)
                {
                    return this.mName.ToLower();
                }
                return (this.mName + "=\"" + TagEncoder.EncodeValue(this.mValue) + "\"");
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -