diff --git a/ExampleAppCore/ExampleAppCore.csproj b/ExampleAppCore/ExampleAppCore.csproj
index 341c87a..7a16981 100644
--- a/ExampleAppCore/ExampleAppCore.csproj
+++ b/ExampleAppCore/ExampleAppCore.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/ExampleAppNet472/ExampleAppNET472.csproj b/ExampleAppNet472/ExampleAppNET472.csproj
index 55895bc..3622b8a 100644
--- a/ExampleAppNet472/ExampleAppNET472.csproj
+++ b/ExampleAppNet472/ExampleAppNET472.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/RazorEngineCore.Tests/RazorEngineCore.Tests.csproj b/RazorEngineCore.Tests/RazorEngineCore.Tests.csproj
index 1ca2f7b..f194a4c 100644
--- a/RazorEngineCore.Tests/RazorEngineCore.Tests.csproj
+++ b/RazorEngineCore.Tests/RazorEngineCore.Tests.csproj
@@ -7,9 +7,9 @@
-
-
-
+
+
+
diff --git a/RazorEngineCore.Tests/TestCompileAndRun.cs b/RazorEngineCore.Tests/TestCompileAndRun.cs
index 2103666..cab85a3 100644
--- a/RazorEngineCore.Tests/TestCompileAndRun.cs
+++ b/RazorEngineCore.Tests/TestCompileAndRun.cs
@@ -739,7 +739,7 @@ public void TestCompileCancellation_DynamicModel()
Assert.ThrowsException(() =>
{
- IRazorEngineCompiledTemplate template = razorEngine.Compile("Hello @Model.Name", cancellationToken: cancellationSource.Token);
+ _ = razorEngine.Compile("Hello @Model.Name", cancellationToken: cancellationSource.Token);
});
}
}
@@ -754,7 +754,7 @@ public async Task TestCompileCancellation_DynamicModelAsync()
await Assert.ThrowsExceptionAsync(async () =>
{
- IRazorEngineCompiledTemplate template = await razorEngine.CompileAsync("Hello @Model.Name", cancellationToken: cancellationSource.Token);
+ _ = await razorEngine.CompileAsync("Hello @Model.Name", cancellationToken: cancellationSource.Token);
});
}
}
@@ -769,7 +769,7 @@ public void TestCompileCancellation_TypedModel1()
Assert.ThrowsException(() =>
{
- IRazorEngineCompiledTemplate template = razorEngine.Compile("Hello @A @B @(A + B) @C @Decorator(\"777\")", cancellationToken: cancellationSource.Token);
+ _ = razorEngine.Compile("Hello @A @B @(A + B) @C @Decorator(\"777\")", cancellationToken: cancellationSource.Token);
});
}
}
@@ -784,7 +784,7 @@ public async Task TestCompileCancellation_TypedModel1Async()
await Assert.ThrowsExceptionAsync(async () =>
{
- IRazorEngineCompiledTemplate template = await razorEngine.CompileAsync("Hello @A @B @(A + B) @C @Decorator(\"777\")", cancellationToken: cancellationSource.Token);
+ _ = await razorEngine.CompileAsync("Hello @A @B @(A + B) @C @Decorator(\"777\")", cancellationToken: cancellationSource.Token);
});
}
}
diff --git a/RazorEngineCore/AnonymousTypeWrapper.cs b/RazorEngineCore/AnonymousTypeWrapper.cs
index e01d269..ae36107 100644
--- a/RazorEngineCore/AnonymousTypeWrapper.cs
+++ b/RazorEngineCore/AnonymousTypeWrapper.cs
@@ -32,7 +32,7 @@ public override bool TryGetMember(GetMemberBinder binder, out object result)
return true;
}
- var type = result.GetType();
+ //var type = result.GetType();
if (result.IsAnonymous())
{
@@ -41,12 +41,7 @@ public override bool TryGetMember(GetMemberBinder binder, out object result)
if (result is IDictionary dictionary)
{
- List