i have syntax error in below code, can any body help that this type of syntaxt is supported in razorengine??
Errors while compiling a Template.
Please try the following to solve the situation:
If the problem is about missing/invalid references or multiple defines either try to load
the missing references manually (in the compiling appdomain!) or
Specify your references manually by providing your own IReferenceResolver implementation.
See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
Currently all references have to be available as files!
If you get 'class' does not contain a definition for 'member':
try another modelType (for example 'null' to make the model dynamic).
NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
Or try to use static instead of anonymous/dynamic types.
More details about the error:
i have syntax error in below code, can any body help that this type of syntaxt is supported in razorengine??
Errors while compiling a Template. Please try the following to solve the situation:
`@{ var showSubject = (Model.Old.Subject != Model.Subject); var showReceivingMode = false; if (Model.ReceivingMode != null && Model.Old.ReceivingMode != null) { showReceivingMode = (Model.Old.ReceivingMode.Text != Model.ReceivingMode.Text); } var showDeliveryDate = (Model.Old.DeliveryDateAsLongDateFormated != Model.DeliveryDateAsLongDateFormated); var showDeliveryTime = (Model.Old.DeliveryTimeAsFormatedTime != Model.DeliveryTimeAsFormatedTime); // var showCorrespondenceExternalRecipients = !(Model.Old.CorrespondenceExternalRecipients == null && Model.CorrespondenceExternalRecipients == null) && // (Model.Old.CorrespondenceExternalRecipients == null || Model.CorrespondenceExternalRecipients == null || (!(Model.Old.CorrespondenceExternalRecipients.Count == 0 && Model.CorrespondenceExternalRecipients.Count == 0) && // (Model.Old.CorrespondenceExternalRecipients.Select(x => x.ExternalContactID).ToList().Except(Model.CorrespondenceExternalRecipients.Select(x => x.ExternalContactID).ToList()).Count() > 0)));
}`