Headless.HtmlCheckBox.BuildPostData C# (CSharp) 메소드

BuildPostData() 보호된 메소드

protected BuildPostData ( ) : IEnumerable
리턴 IEnumerable
        protected internal override IEnumerable<PostEntry> BuildPostData()
        {
            if (Checked == false)
            {
                yield break;
            }

            var value = Value;

            if (string.IsNullOrEmpty(value))
            {
                // The value of "on" is the default by convention.
                value = "on";
            }

            yield return new PostEntry(Name, value);
        }