JsonFx.UI.Jbst.JbstWriter.SetAttribute C# (CSharp) Method

SetAttribute() private method

private SetAttribute ( JbstContainerControl target, string name, string value ) : void
target JbstContainerControl
name string
value string
return void
        private void SetAttribute(JbstContainerControl target, string name, string value)
        {
            value = HtmlDistiller.DecodeHtmlEntities(value);
            if ("style".Equals(name, StringComparison.OrdinalIgnoreCase))
            {
                this.SetStyle(target, null, value);
            }
            else
            {
                target.Attributes[name] = value;
            }
        }