public override IEnumerable <IFieldMetadata> GetFieldMetadata(string recordType)
 {
     lock (_lockObject)
     {
         if (_fieldMetadata == null)
         {
             _fieldMetadata = CsvUtility.GetColumns(CsvNameQualified).Select(c =>
                                                                             new StringFieldMetadata(recordType, c, c))
                              .ToArray();
         }
         return(_fieldMetadata);
     }
 }
 public override IEnumerable <IFieldMetadata> GetFieldMetadata(string recordType)
 {
     lock (_lockObject)
     {
         if (_fieldMetadata == null)
         {
             var fields  = new List <IFieldMetadata>();
             var columns = CsvUtility.GetColumns(CsvNameQualified);
             foreach (var column in columns)
             {
                 fields.Add(new StringFieldMetadata(recordType, column, column?.Replace("#", ".")));
             }
             _fieldMetadata = fields;
         }
         return(_fieldMetadata);
     }
 }