You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IRazorEnginerazorEngine=new RazorEngine();IRazorEngineCompiledTemplatetemplate= razorEngine.Compile("Hello @Model.Name");stringresult= template.Run(new{
Name ="Alexander"});
catch error:type can't be null
in System.Activator.CreateInstance(Type type, Boolean nonPublic)
in System.Activator.CreateInstance(Type type)
in RazorEngineCore.RazorEngineCompiledTemplate`1.<RunAsync>d__12.MoveNext()
in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in RazorEngineCore.RazorEngineCompiledTemplate`1.Run(Action`1 initializer)
The text was updated successfully, but these errors were encountered:
catch error:type can't be null
The text was updated successfully, but these errors were encountered: