I'm struggling to find a way to list the name of all properties on a node. I've found this post which shows how to get the value of all properties on a node, but using @prop.Name returns the error "Cannot assign method group to an implicitly-typed local variable".
Return name of each property on a node
Hi,
I'm struggling to find a way to list the name of all properties on a node. I've found this post which shows how to get the value of all properties on a node, but using @prop.Name returns the error "Cannot assign method group to an implicitly-typed local variable".
https://our.umbraco.org/forum/developers/razor/71618-get-all-properties-of-node
Any idea what I'm doing wrong?
Thanks!
Amir
prop.PropertyTypeAlias is what I was looking for actually, but is there a way to return the name as well as the alias?
is working on a reply...