public RowColumnRow(ICounted counted, IColumn[] columns) { Contracts.AssertValueOrNull(counted); Contracts.AssertValue(columns); _counted = counted ?? _defCount; _columns = columns; _schema = new SchemaImpl(this); }
/// <summary> /// Wraps a set of row columns as a row. /// </summary> /// <param name="counted">The counted object that the output row will wrap for its own implementation of /// <see cref="ICounted"/>, or if null, the output row will yield default values for those implementations, /// that is, a totally static row</param> /// <param name="columns">A set of row columns</param> /// <returns>A row with items derived from <paramref name="columns"/></returns> public static IRow GetRow(ICounted counted, params IColumn[] columns) { Contracts.CheckValueOrNull(counted); Contracts.CheckValue(columns, nameof(columns)); return(new RowColumnRow(counted, columns)); }