Skip to content

Commit d40e4f7

Browse files
committed
Fixed readme.
1 parent 4759333 commit d40e4f7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ A .NET 8 project for compiling and executing C# code from strings at runtime usi
2121
- NuGet package: `dynamic-code` ([NuGet Gallery](https://www.nuget.org/packages/dynamic-code))
2222

2323
## Installation
24-
2524
Install the package from NuGet:dotnet add package dynamic-code
26-
## Usage Exampleusing DynamicCode;
25+
26+
## Usage Example
27+
```csharp
28+
using DynamicCode;
2729

2830
var code = @"
2931
using System;
@@ -58,6 +60,8 @@ intResult = intFn1(8, 9);
5860
Console.WriteLine($"Function body:\r\n'{code}'");
5961
Console.WriteLine("x = 8, y = 9");
6062
Console.WriteLine($"Function result is: {intResult}");
63+
```
64+
6165
## Project Structure
6266

6367
- `DynamicCode/Compiler/` - Core compiler and utility classes
@@ -71,6 +75,7 @@ Console.WriteLine($"Function result is: {intResult}");
7175
## Running Tests
7276

7377
To run the test suite:dotnet test
78+
7479
## License
7580
MIT License
7681

0 commit comments

Comments
 (0)