public static TransformedReadableColumnProxy FromColumn(ITransformedReadableColumn column) { if (null == column) throw new ArgumentNullException(nameof(column)); var colAsDocumentNode = column.UnderlyingReadableColumn as IDocumentLeafNode; if (null == colAsDocumentNode) throw new ArgumentException(string.Format("column does not implement {0}. The actual type of column is {1}", typeof(IDocumentLeafNode), column.GetType())); return new TransformedReadableColumnProxy(column); }
public static TransformedReadableColumnProxy FromColumn(ITransformedReadableColumn column) { if (null == column) { throw new ArgumentNullException(nameof(column)); } var colAsDocumentNode = column.UnderlyingReadableColumn as IDocumentLeafNode; if (null == colAsDocumentNode) { throw new ArgumentException(string.Format("column does not implement {0}. The actual type of column is {1}", typeof(IDocumentLeafNode), column.GetType())); } return(new TransformedReadableColumnProxy(column)); }
/// <summary> /// Constructor by giving a numeric column. /// </summary> /// <param name="column">The numeric column to hold.</param> protected TransformedReadableColumnProxyForStandaloneColumns(ITransformedReadableColumn column) { _underlyingColumn = column.UnderlyingReadableColumn; _transformation = column.Transformation; _cachedResultingColumn = column; }
protected TransformedReadableColumnProxy(ITransformedReadableColumn column) : base((IDocumentLeafNode)column.UnderlyingReadableColumn) { _transformation = column.Transformation; }