Skip to content

Commit

Permalink
TryCatchThrow
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRadch committed Feb 28, 2018
1 parent 046c863 commit bdc96cb
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 44 deletions.
26 changes: 26 additions & 0 deletions Src/TryCatchThrow/Program.cs
Original file line number Diff line number Diff line change
@@ -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<int> RangeRecursive(int b, int e)
{
if (b > e)
yield break;

yield return b;

foreach (var v in RangeRecursive(b + 1, e))
yield return v;
}
}
}
8 changes: 8 additions & 0 deletions Src/TryCatchThrow/TryCatchThrow.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

</Project>
25 changes: 25 additions & 0 deletions Src/dotPeekIssues.sln
Original file line number Diff line number Diff line change
@@ -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
18 changes: 0 additions & 18 deletions dotPeekIssues.sln

This file was deleted.

13 changes: 0 additions & 13 deletions dotPeekIssues/dotPeekIssues.projitems

This file was deleted.

13 changes: 0 additions & 13 deletions dotPeekIssues/dotPeekIssues.shproj

This file was deleted.

0 comments on commit bdc96cb

Please sign in to comment.