Re: property inference
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Thu, 5 Mar 2009 11:26:33 -0600
rodchar wrote:
hey all,
given:
class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
public override string ToString()
{
return this.FirstName + " " + this.LastName;
}
}
question:
so, if you do this type of inference there's no access to the private
variable? is that correct?
What inference? What private variable? The code you posted has neither.
thanks,
rodchar
.
- Follow-Ups:
- Re: property inference
- From: Paul
- Re: property inference
- From: Peter
- Re: property inference
- References:
- property inference
- From: rodchar
- property inference
- Prev by Date: TFS Unit Testing Console Output
- Next by Date: Re: c# - GetDirectories invalid characters
- Previous by thread: Re: property inference
- Next by thread: Re: property inference
- Index(es):
Relevant Pages
|