internal ChoCSVRecordFieldConfiguration GetFieldConfiguration(string fn) { if (!CSVRecordFieldConfigurations.Any(fc => fc.Name == fn)) { CSVRecordFieldConfigurations.Add(new ChoCSVRecordFieldConfiguration(fn)); } return(CSVRecordFieldConfigurations.First(fc => fc.Name == fn)); }
internal ChoCSVRecordFieldConfiguration GetFieldConfiguration(string fn, ChoCSVRecordFieldAttribute attr = null, Attribute[] otherAttrs = null) { if (!CSVRecordFieldConfigurations.Any(fc => fc.Name == fn)) { CSVRecordFieldConfigurations.Add(new ChoCSVRecordFieldConfiguration(fn, attr, otherAttrs)); } return(CSVRecordFieldConfigurations.First(fc => fc.Name == fn)); }