/// <summary> /// Gets the value in the specified column, or <see langword="null"/> if the value does not exist. /// </summary> /// <param name="column"> /// The column name. /// </param> /// <returns> /// The value, or <see langword="null"/> if the value does not exist for this record. /// </returns> public string GetValueOrNull(string column) { if (column == null) { throw new ArgumentNullException("column"); } return(GetValueOrNull(_headerRecord.IndexOf(column))); }
/// <summary> /// Gets the value in the specified column, or <see langword="null"/> if the value does not exist. /// </summary> /// <param name="column"> /// The column name. /// </param> /// <returns> /// The value, or <see langword="null"/> if the value does not exist for this record. /// </returns> public string GetValueOrNull(string column) { column.AssertNotNull("column"); _exceptionHelper.ResolveAndThrowIf(_headerRecord == null, "no-header-record"); return(GetValueOrNull(_headerRecord.IndexOf(column))); }