/// <summary> /// Gets the value of the specified column as an instance of System.Object. /// </summary> /// <param name="name">The name of the column.</param> /// <returns>The value of the specified column.</returns> public override object this[string name] { get { var info = columnMapping.FirstOrDefault((item) => item.ColumnName == name); if (info == null) { throw new IndexOutOfRangeException("ordinal is out of range."); } var current = CurrentRecord; return(current.GetType().GetProperty(info.PropertyName).GetValue(current)); } }