Added descriptions and .sln project file

master
Jan Beníček 2023-10-28 09:11:57 +02:00
parent f3b2d17b34
commit cf552af9ce
2 changed files with 27 additions and 2 deletions

25
CSVImporter.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34202.233
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSVImporter", "CSVImporter.csproj", "{E19A7891-7ADA-4004-B4D9-BB523DC55EFD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E19A7891-7ADA-4004-B4D9-BB523DC55EFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E19A7891-7ADA-4004-B4D9-BB523DC55EFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E19A7891-7ADA-4004-B4D9-BB523DC55EFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E19A7891-7ADA-4004-B4D9-BB523DC55EFD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2B034D30-10FB-4C05-9471-289752589372}
EndGlobalSection
EndGlobal

View File

@ -5,12 +5,12 @@ namespace CSVImporter
public class Importer
{
/// <summary>
/// Import CSV data to 2D List pole
/// Import CSV data to 2D List based field
/// </summary>
/// <param name="path">Path of CSV File</param>
/// <param name="separator">Separator between values</param>
/// <param name="skip">Skip first x rows (do not load)</param>
/// <returns></returns>
/// <returns>List based 2D field. Main list contains collumns and contained list values</returns>
public static List<List<string>> ImportCSV(string path, string separator, int skip = 0)
{
List<List<string>> Collumns = new List<List<string>>(); //Initialize Lists Object