Only when I'm currently trying to use it, i get the following error in Visual Studio:
Cannot convert method group 'GetPropertyValue' to non-delegate type 'object'. Did you intend to invoke the method?
And when I run the website I'm receiving a parser error. Did something change? Could it be related to MVC5? This is currently a very simple page, using the following code:
GetPropertyValue<> fails (U 7.3)
Hi,
I'm working in a new install of Umbraco 7.3. And in previous versions I could always this for example:
Only when I'm currently trying to use it, i get the following error in Visual Studio:
And when I run the website I'm receiving a parser error. Did something change? Could it be related to MVC5? This is currently a very simple page, using the following code:
Update: This only occurs when using in a template file, when using this in a partial, or in a helperextension.cs for example. It does work.
You need to add brackets to your code due to the type <>, e.g.
That was it... Never had to do that before, this is only needed in a template file as far as I can tell.
Just don't understand why, yet. Maybe something to do with the template parsing the
<string>
as HTML ?Yes, if you have a type in angle brackets such as < string > you need the additional brackets for the parser to work
is working on a reply...