Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions samples/snippets/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<LangVersion Condition="$(MSBuildProjectExtension) == '.csproj'">latest</LangVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
using System;

namespace Prime.Services
namespace Prime.Services;

public class PrimeService
{
public class PrimeService
public bool IsPrime(int candidate)
{
public bool IsPrime(int candidate)
if (candidate < 2)
{
if (candidate < 2)
{
return false;
}
throw new NotImplementedException("Please create a test first");
return false;
}
throw new NotImplementedException("Please create a test first");
}
}