|
|
От: |
Ziaw
|
|
| Дата: | 15.06.16 07:52 | ||
| Оценка: | |||
SP> public FullName : string
SP> {
SP> get
SP> {
SP> match (this)
SP> {
SP> | ListItem as item => item.FullName
SP> | _ => this.Owner?.FullName
SP> }
SP> }
SP> }
SP>public string Fullname
{
get
{
if (this is ListItem)
return ((ListItem) this).FullName;
...
}
}