コード例 #1
0
		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);
		}
コード例 #2
0
        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;
		}
コード例 #4
0
		protected TransformedReadableColumnProxy(ITransformedReadableColumn column)
			: base((IDocumentLeafNode)column.UnderlyingReadableColumn)
		{
			_transformation = column.Transformation;
		}
コード例 #5
0
 protected TransformedReadableColumnProxy(ITransformedReadableColumn column)
     : base((IDocumentLeafNode)column.UnderlyingReadableColumn)
 {
     _transformation = column.Transformation;
 }
コード例 #6
0
 /// <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;
 }