コード例 #1
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (EndPoint != null)
            {
                builder.AddAttribute(nameof(EndPoint), AttributeHelper.PointToString(EndPoint.Value));
            }
            if (StartPoint != null)
            {
                builder.AddAttribute(nameof(StartPoint), AttributeHelper.PointToString(StartPoint.Value));
            }

            RenderAdditionalAttributes(builder);
        }