Skip to content

Commit fb1ca4c

Browse files
committed
feat: example library
1 parent 50f1188 commit fb1ca4c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/ExampleLibrary/Example.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
This library is just a basic example of
3+
something your webpage may need to call.
4+
5+
Place it in the 'references' folder and
6+
it will become available to both the
7+
runner and compiler automatically
8+
*/
9+
10+
namespace ExampleLibrary;
11+
public class MyCoolThing(int number)
12+
{
13+
private readonly int BestNumber = number;
14+
public string AmazingMethod => $"Hello World! [{BestNumber}]";
15+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
</Project>

0 commit comments

Comments
 (0)