public void Apply(ref int sequence, RenderTreeBuilder treeBuilder) { if (Attributes.Any()) { treeBuilder.AddMultipleAttributes(sequence + 3, Attributes); } if (Class.Any()) { treeBuilder.AddAttribute(sequence + 1, "class", (string)Class); } if (Style.Any()) { treeBuilder.AddAttribute(sequence + 2, "style", (string)Style); } sequence += SequenceCount; }