diff --git a/Src/TryCatchThrow/Program.cs b/Src/TryCatchThrow/Program.cs new file mode 100644 index 0000000..fdf397e --- /dev/null +++ b/Src/TryCatchThrow/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace TryCatchThrow +{ + class Program + { + static void Main() + { + Console.WriteLine(RangeRecursive(1, 10).Sum()); + Console.ReadLine(); + } + + static IEnumerable RangeRecursive(int b, int e) + { + if (b > e) + yield break; + + yield return b; + + foreach (var v in RangeRecursive(b + 1, e)) + yield return v; + } + } +} diff --git a/Src/TryCatchThrow/TryCatchThrow.csproj b/Src/TryCatchThrow/TryCatchThrow.csproj new file mode 100644 index 0000000..ce1697a --- /dev/null +++ b/Src/TryCatchThrow/TryCatchThrow.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.0 + + + diff --git a/Src/dotPeekIssues.sln b/Src/dotPeekIssues.sln new file mode 100644 index 0000000..7903a3f --- /dev/null +++ b/Src/dotPeekIssues.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27130.2036 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TryCatchThrow", "TryCatchThrow\TryCatchThrow.csproj", "{301243F8-E45E-4100-929A-B37AD4AC3B36}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {301243F8-E45E-4100-929A-B37AD4AC3B36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {301243F8-E45E-4100-929A-B37AD4AC3B36}.Debug|Any CPU.Build.0 = Debug|Any CPU + {301243F8-E45E-4100-929A-B37AD4AC3B36}.Release|Any CPU.ActiveCfg = Release|Any CPU + {301243F8-E45E-4100-929A-B37AD4AC3B36}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1D8C558B-AD7A-4945-A3FA-CB814E718B3B} + EndGlobalSection +EndGlobal diff --git a/dotPeekIssues.sln b/dotPeekIssues.sln deleted file mode 100644 index 739f58e..0000000 --- a/dotPeekIssues.sln +++ /dev/null @@ -1,18 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27130.2036 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "dotPeekIssues", "dotPeekIssues\dotPeekIssues.shproj", "{4F3CFDE2-C936-4277-A2D4-AA5672E7C87E}" -EndProject -Global - GlobalSection(SharedMSBuildProjectFiles) = preSolution - dotPeekIssues\dotPeekIssues.projitems*{4f3cfde2-c936-4277-a2d4-aa5672e7c87e}*SharedItemsImports = 13 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {90DC76F6-B3A9-4588-97D2-C7927EC3360C} - EndGlobalSection -EndGlobal diff --git a/dotPeekIssues/dotPeekIssues.projitems b/dotPeekIssues/dotPeekIssues.projitems deleted file mode 100644 index e38e2a4..0000000 --- a/dotPeekIssues/dotPeekIssues.projitems +++ /dev/null @@ -1,13 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 4f3cfde2-c936-4277-a2d4-aa5672e7c87e - - - dotPeekIssues - - - - diff --git a/dotPeekIssues/dotPeekIssues.shproj b/dotPeekIssues/dotPeekIssues.shproj deleted file mode 100644 index 6f04eae..0000000 --- a/dotPeekIssues/dotPeekIssues.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - 4f3cfde2-c936-4277-a2d4-aa5672e7c87e - 14.0 - - - - - - - -