/// <summary> /// Gets the value of a <see cref="DataTransferColumn"/> from the <see cref="Columns"/> with the specified <paramref name="column"/>. /// </summary> /// <param name="column">The column from which to return the value from.</param> /// <returns>An <see cref="object"/> that contains the data of the column.</returns> public object this[DataTransferColumn column] { get { return(column == null ? null : this[column.Ordinal]); } }
/// <summary> /// Gets the value of a <see cref="DataTransferColumn"/> from the <see cref="Columns"/> with the specified <paramref name="column"/>. /// </summary> /// <typeparam name="TResult">The type of the result.</typeparam> /// <param name="column">The column from which to return the value from.</param> /// <returns>The value associated with the <paramref name="column"/> converted to the specified <typeparamref name="TResult"/>.</returns> public TResult As <TResult>(DataTransferColumn column) { return(column == null ? default(TResult) : As <TResult>(column.Ordinal)); }