Properties with MetaInformation
Posted: Thu Feb 17, 2011 3:37 pm
I can't see to get MetaInformation to work with Auto properties.
In C#:
In Cobra:
How should I get the MetaInfo?
In C#:
- Code: Select all
[Serializable]
public class Show
{
[XmlElement("showid")]
public int ShowId
{
get;
set;
}
[XmlElement("name")]
public string Name {
get;
set;
}
public string DisplayName
{
get
{
return string.Format ("({0}) {1}", ShowId, Name);
}
}
}
In Cobra:
class Show has Serializable
pro showId from var as int has XmlElement('showid')
pro name from var as String has XmlElement("name")
pro displayName as String
get
return '[.showId] - [.name]'
How should I get the MetaInfo?