From 786cb2242e424c0b88406184dd94343e3bdc4143 Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Thu, 15 Feb 2024 18:11:55 +0530 Subject: [PATCH] Rangevalues to TwoDimensionalArray --- .../Ranges-into-TwoDimensionalArrray.sln | 25 +++++++++ .../Data/InputTemplate.xlsx | Bin 0 -> 15154 bytes .../Program.cs | 53 ++++++++++++++++++ .../Ranges-into-TwoDimensionalArrray.csproj | 15 +++++ 4 files changed, 93 insertions(+) create mode 100644 Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.sln create mode 100644 Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Data/InputTemplate.xlsx create mode 100644 Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Program.cs create mode 100644 Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.csproj diff --git a/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.sln b/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.sln new file mode 100644 index 00000000..8960a8da --- /dev/null +++ b/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34310.174 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ranges-into-TwoDimensionalArrray", "Ranges-into-TwoDimensionalArrray\Ranges-into-TwoDimensionalArrray.csproj", "{A948FC11-55E5-49F2-9F96-68DADA090B73}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A948FC11-55E5-49F2-9F96-68DADA090B73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A948FC11-55E5-49F2-9F96-68DADA090B73}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A948FC11-55E5-49F2-9F96-68DADA090B73}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A948FC11-55E5-49F2-9F96-68DADA090B73}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B748AF50-0513-4CB9-BC50-915139188373} + EndGlobalSection +EndGlobal diff --git a/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Data/InputTemplate.xlsx b/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3a9a65f30b71674ea58dce4a54f1abb006612607 GIT binary patch literal 15154 zcmeHug;yQx?lx}4rMSCOpg0r?rMPU|9g4dacXzi!aV_pr+={zQ`RfP zD3PAfFhRA#;xSa0-ItejDgrQJ_Ii!1=5ijb!&1AU7V%-UFC#~ww1UoTsNjydu=eue zoIbi?sRx0HI%laL%LHL$)M0;057kscDO>pv5tkpdRvnvf`T;$j*n2BUR3wbVT|y2! zF1>)dH)Qn~u)6}wgOERoygrIAF|i7}oE{-b&=d zl%$M6vF+S3M&1q4uZ_STMyppLA;HMs8I&1`n*@t@2z^jN!^w=>F(=HkKJi3U#o}Q! z*~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g3$xpZGV25>_3m|Kl?wt zS|%g@-vIypw#t75f9zL)KJhDG`I)6W7koa!|63Fi$S$7E^FJ5T{ImGjhLCERg>=G4~wcd6)k;zyan@fZsj;=c3QM zsJ}&faej$D@2NgVc;1uzjnIVq6XEZ~`=2TIbCl=pr{5@;1V2&!Lj`~Iq<%8N=LpY> zVZRXufaNiuLHvdAyEOJ3;W+{QjgUn1PXxW+bo4pIb58afqL20`#Q%?>JqLVFWPSr~ z()|SdTf4tZ_MbZbqu)Fy2fqQ=fO*qzHT{BnMiri4-SgD?H`ocoPq1f+HRH46pNaN! z(Em= + /// Converting range values into 2 dimensional array + /// + public static string[,] ConvertIRangeToArray(IWorksheet worksheet, IRange range) + { + int startRow = range.Row; + int startCol = range.Column; + int endRow = range.LastRow; + int endCol = range.LastColumn; + + string[,] numbers = new string[endRow - startRow + 1, endCol - startCol + 1]; + + for (int i = 0; i <= endRow - startRow; i++) + { + for (int j = 0; j <= endCol - startCol; j++) + { + numbers[i, j] = worksheet[startRow + i, startCol + j].Value; + Console.Write(numbers[i, j]); + Console.Write("\t"); + } + Console.Write("\n______________________________________________\n"); + } + return numbers; + } + } +} \ No newline at end of file diff --git a/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.csproj b/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.csproj new file mode 100644 index 00000000..1c263e3f --- /dev/null +++ b/Use Cases/Ranges-into-TwoDimensionalArray/NET Standard/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray/Ranges-into-TwoDimensionalArrray.csproj @@ -0,0 +1,15 @@ + + + + Exe + net6.0 + Ranges_into_TwoDimensionalArrray + enable + enable + + + + + + +