File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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-
2524Install the package from NuGet: dotnet add package dynamic-code
26- ## Usage Exampleusing DynamicCode;
25+
26+ ## Usage Example
27+ ``` csharp
28+ using DynamicCode ;
2729
2830var code = @"
2931 using System;
@@ -58,6 +60,8 @@ intResult = intFn1(8, 9);
5860Console .WriteLine ($" Function body:\r\n '{code }'" );
5961Console .WriteLine (" x = 8, y = 9" );
6062Console .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
7377To run the test suite: dotnet test
78+
7479## License
7580MIT License
7681
You can’t perform that action at this time.
0 commit comments