コード例 #1
0
        public HtmlElement(string name)
        {
            if (name == null || name.Trim().Length != name.Length)
            {
                throw new ArgumentException();
            }

            if (Prefix == null || Prefix.Trim().Length != Prefix.Length)
            {
                throw new ApplicationException();
            }

            attributes = new List <IHtmlAttribute>();

            attributes.Add(attrId = name != "" ? new AttrId(string.Format("{0}{1}", Prefix, name)) : new AttrId());

            attributes.Add(attrClass = new AttrClass());

            attributes.Add(attrHidden = new AttrHidden());

            events = new List <HtmlEvent>();
        }
コード例 #2
0
ファイル: AttributeInfo.cs プロジェクト: thfthf2/NStore
 public override int GetHashCode()
 {
     //return base.GetHashCode();
     return(AttrId.GetHashCode());
 }