private void RecodeMapFunction() { if (this.Context.DataSet.Tables["Output"].Columns.Contains(_recodeList.SourceName)) { if (this.Context.CurrentDataRow[_recodeList.SourceName] == DBNull.Value) { this.Context.CurrentDataRow[_recodeList.VariableName] = DBNull.Value; } else { object sourceValue = _recodeList.GetRecode(Context.CurrentDataRow[_recodeList.SourceName]); if (sourceValue == null || (sourceValue is string && string.IsNullOrEmpty((string)sourceValue))) { this.Context.CurrentDataRow[_recodeList.VariableName] = DBNull.Value; } else { this.Context.CurrentDataRow[_recodeList.VariableName] = _recodeList.GetRecode(this.Context.CurrentDataRow[_recodeList.SourceName]); } } } }