Hi, I was reading an article: click here to view about models builder, and I came across some syntax that has motivated me raise some questions, since it doesn't quite reflect the syntax when doing some basic get and setC# tutorials online.
Are these equivalent:
public string NewsTitle
{
this.GetPropertyValue<string>(“newsTitle”);
}
public bool UmbracoNaviHide
{
get { return this.GetPropertyValue<bool>("umbracoNaviHide"); }
}
The only difference with the bottom example is that it uses the [ImplementPropertyType("umbracoNaviHide")] attribute.
Also, can the first example be re-written as:
public string NewsTitle = GetPropertyValue<string>(“newsTitle”);
Strongly Typed Models
Hi, I was reading an article: click here to view about models builder, and I came across some syntax that has motivated me raise some questions, since it doesn't quite reflect the syntax when doing some basic
get
andset
C#
tutorials online.Are these equivalent:
The only difference with the bottom example is that it uses the
[ImplementPropertyType("umbracoNaviHide")]
attribute.Also, can the first example be re-written as:
Any pointers would be much appreciated.
is working on a reply...