diff options
| author | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
|---|---|---|
| committer | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
| commit | 00a491d93733d4625ad329b2ba8237f445364b3f (patch) | |
| tree | 4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.CSV/CsvFile.cs | |
| parent | 124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff) | |
| download | Tango-00a491d9.tar.gz Tango-00a491d9.zip | |
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.CSV/CsvFile.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.CSV/CsvFile.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Software/Visual_Studio/Tango.CSV/CsvFile.cs b/Software/Visual_Studio/Tango.CSV/CsvFile.cs index 9b1d23bb3..1f21ce6e8 100644 --- a/Software/Visual_Studio/Tango.CSV/CsvFile.cs +++ b/Software/Visual_Studio/Tango.CSV/CsvFile.cs @@ -73,18 +73,6 @@ namespace Tango.CSV } /// <summary> - /// Gets the columns. - /// </summary> - /// <typeparam name="T"></typeparam> - /// <param name="csvSource">The CSV source.</param> - /// <returns></returns> - public static IEnumerable<string> GetColumns<T>(CsvSource csvSource) where T : new() - { - var csvFileReader = new CsvFileReader<T>(csvSource); - return csvFileReader.Columns; - } - - /// <summary> /// Gets the field separator. /// </summary> /// <value> @@ -106,7 +94,7 @@ namespace Tango.CSV /// <value> /// The columns. /// </value> - public IEnumerable<String> Columns { get; protected set; } + public IEnumerable<String> Columns { get; private set; } /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. @@ -305,7 +293,7 @@ namespace Tango.CSV if (pi == null) //Then try get by column index, { pi = typeof(T).GetProperties()[index]; - pi = typeof(T).GetProperties()[index]; //Workaround for some weired problem that makes the program not take the value. + pi = typeof(T).GetProperties()[index]; } if (CsvFile.UseLambdas) |
