Skip to content

Commit

Permalink
Created sample project to demonstrate common logic functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tacosontitan committed Feb 1, 2024
1 parent 2f1965d commit d5eb997
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Hussy.Net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{C08B
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hussy.Net.HelloWorld", "samples\Hussy.Net.HelloWorld\Hussy.Net.HelloWorld.csproj", "{F62EF1EB-4853-40E4-AF69-80BB5282270C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hussy.Net.Logic", "samples\Hussy.Net.Logic\Hussy.Net.Logic.csproj", "{F04046C8-5B51-46C2-8603-27E402981AF0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -28,10 +30,15 @@ Global
{F62EF1EB-4853-40E4-AF69-80BB5282270C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F62EF1EB-4853-40E4-AF69-80BB5282270C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F62EF1EB-4853-40E4-AF69-80BB5282270C}.Release|Any CPU.Build.0 = Release|Any CPU
{F04046C8-5B51-46C2-8603-27E402981AF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F04046C8-5B51-46C2-8603-27E402981AF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F04046C8-5B51-46C2-8603-27E402981AF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F04046C8-5B51-46C2-8603-27E402981AF0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{14788585-4CAA-415C-8B29-B4E2BBDC9C66} = {B43C73D9-7CA0-4D59-8ABE-AFD9A3F54361}
{D518FE46-8221-4751-9D6A-6CD0E0779A2F} = {B43C73D9-7CA0-4D59-8ABE-AFD9A3F54361}
{F62EF1EB-4853-40E4-AF69-80BB5282270C} = {C08B73E3-E9BB-44DE-AE74-647A442780D9}
{F04046C8-5B51-46C2-8603-27E402981AF0} = {C08B73E3-E9BB-44DE-AE74-647A442780D9}
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions samples/Hussy.Net.Logic/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using static Hussy.Net.Hussy;
14 changes: 14 additions & 0 deletions samples/Hussy.Net.Logic/Hussy.Net.Logic.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Hussy.Net\Hussy.Net.csproj" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions samples/Hussy.Net.Logic/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Print all even numbers from 1 to 10.
// The function EV takes in a numeric value
// and determines if it is even or not.
R(10).F(EV).E(W);

// Print all odd numbers from 1 to 10.
// The function OD takes in a numeric value
// and determines if it is odd or not.
R(10).F(OD).E(W);

0 comments on commit d5eb997

Please sign in to comment.