public RowType(TableVarColumnsBase columns, string prefix) : base() { InternalInitialize(); foreach (TableVarColumn column in columns) { _columns.Add(column.Column.Copy(prefix)); } }
public bool IsSupersetOf(TableVarColumnsBase columns) { // true if every column in AColumnNames is in this set of columns foreach (TableVarColumn column in columns) { if (!ContainsName(column.Name)) { return(false); } } return(true); }
public bool IsProperSupersetOf(TableVarColumnsBase columns) { // true if every column in AColumnNames is in this set of columns and this set of columns is strictly larger return(IsSupersetOf(columns) && (Count > columns.Count)); }