using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StructureHelperCommon.Models.Tables { public class ShTableRow : IShTableRow { private List> elements; public int RowSize { get; } public ShTableRow(int rowSize) { if (rowSize <= 0) { throw new ArgumentException("Row size must be greater than 0.", nameof(rowSize)); } RowSize = rowSize; elements = new List>(rowSize); for (int i = 0; i < rowSize; i++) { var newCell = new ShTableCell(); elements.Add(newCell); } } // Property to access elements in the row public List> Elements => elements; internal void Add(object value) { throw new NotImplementedException(); } } }