urtlking2jo
IS-IT--Management
- Jul 25, 2003
- 4
I'm trying to build an additional property for an "Installation" class. Sometimes "Name" goes first, sometimes "InstallationType" goes first. VStudio doesn't give me much, but says to make sure I don't have an infinite loop/recursion. Any ideas? Thanks!
public partial class Installation
{
public string FullName
{
set { FullName = value; }
get
{
if (InstallationTypeFirst)
FullName = InstallationType + " " + Name;
else
FullName = Name + InstallationType;
return FullName;
}
}
}
public partial class Installation
{
public string FullName
{
set { FullName = value; }
get
{
if (InstallationTypeFirst)
FullName = InstallationType + " " + Name;
else
FullName = Name + InstallationType;
return FullName;
}
}
}