M
Magnus.Moraberg
Hi,
I have the following classes -
Result
{
public Person Person{get{return person;}}
public Result(Person person)
{
this.person = person;
}
// private
Person person;
}
FarmerResult : BaseClass
{
public Farmer farmer{get{return ???;}}
public FarmerResult (Farmer farmer)
: base(farmer)
{
}
}
I wish to have a public get for my FarmerResult which returns the
Farmer in question, rather than using the Person accessor. In other
words, farmerResultObj.Farmer rather than farmerResultObj.Person.
The above code is just an example, in my case I have very abstract
names for my base classes. For example, the user can view information
for a Test in terms of either Scenarios or User Functions. The
information stores in the Scenarios and User Functions classes are
near identical so I've used a base class to represent this, a base
class with a very abstract name and so on...
Thanks,
Barry.
I have the following classes -
Result
{
public Person Person{get{return person;}}
public Result(Person person)
{
this.person = person;
}
// private
Person person;
}
FarmerResult : BaseClass
{
public Farmer farmer{get{return ???;}}
public FarmerResult (Farmer farmer)
: base(farmer)
{
}
}
I wish to have a public get for my FarmerResult which returns the
Farmer in question, rather than using the Person accessor. In other
words, farmerResultObj.Farmer rather than farmerResultObj.Person.
The above code is just an example, in my case I have very abstract
names for my base classes. For example, the user can view information
for a Test in terms of either Scenarios or User Functions. The
information stores in the Scenarios and User Functions classes are
near identical so I've used a base class to represent this, a base
class with a very abstract name and so on...
Thanks,
Barry.