'Engine.Razor.RunCompile How to get error list
I want to see the reason for the error in parsing document ie;
string template = "Hello @Model.NameXxx.NameYyy, welcome to RazorEngine!";
Engine.Razor.RunCompile(template , null, null, data);
apparently there is no data named NameXxx so this is giving the error : Cannot perform runtime binding on a null reference but not mentioning NameXxx at all.
I want the error message the value Model.NameXxx.NameYyy is not found in the data provided
Is it possible to achieve something like this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
