attribute.cs

来自「Freetextbox是优秀的在线编辑器」· CS 代码 · 共 52 行

CS
52
字号
namespace FreeTextBoxControls.Support.Sgml
{
    using System;

    internal class Attribute
    {
        public void Reset(string name, string value, char quote)
        {
            this.Name = name;
            this.literalValue = value;
            this.QuoteChar = quote;
            this.DtdType = null;
        }


        public bool IsDefault
        {
            get
            {
                return (this.literalValue == null);
            }
        }

        public string Value
        {
            get
            {
                if (this.literalValue != null)
                {
                    return this.literalValue;
                }
                if (this.DtdType != null)
                {
                    return this.DtdType.Default;
                }
                return null;
            }
            set
            {
                this.literalValue = value;
            }
        }


        internal AttDef DtdType;
        internal string literalValue;
        internal string Name;
        internal char QuoteChar;
    }
}

⌨️ 快捷键说明

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