Re: Passing Objects and protection level



Oh my <turning red>. Thanks to all who replied. Ignacio, Alan, Metallikanz,
Jon.

"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.1d6c432e48313db098c5a2@xxxxxxxxxxxxxxxxxxxxxxx
> [Removed microsoft.public.dotnet.csharp.general, which isn't a valid
> newsgroup.]
>
> ji <jj@xxxxxx> wrote:
>> I'm a vb programmer < flinch - duck>... trying to get into C#. All is
>> good
>> up to this point but for a conceptual issue. I'm hoping somebody can help
>> me...
>
> <snip>
>
> There are two problems:
>
> 1) You're trying to access the variable, not the property - the
> variable is called age, the property is called Age.
>
> 2) You're trying to access PassYears as if it were a static method, but
> it's not.
>
> --
> Jon Skeet - <skeet@xxxxxxxxx>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too


.



Relevant Pages

  • Re: Passing Objects and protection level
    ... variable is called age, ... You're trying to access PassYears as if it were a static method, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Survivor in trouble at work
    ... Thanks for the stats - I can guarantee you that there is no offence ... My father had a traumatic moment when he passed his father's age. ... So a question for the newsgroup - has any Survivor contestant yet ... I'm surprised not to have heard such news of ...
    (alt.tv.survivor)
  • Re: Good topic of conversation
    ... not trying to take over the newsgroup but we do feel free to express ... in defence of his character. ... Many men in his age category are super sensitive to what they see ... approaching harmony they must not directly confront them but find ...
    (soc.senior.issues)
  • Re: Is there a way?
    ... I would agree that there are instances when storing a computed value ... Another good example would be an inventory database. ... Please reply to newsgroup only. ... creation date would require calculating the age on the fly, ...
    (microsoft.public.access.queries)
  • Re: Age distribution of todays Bridge players?
    ... What is the age distribution of today's Bridge players? ... Please reply in this newsgroup. ... I can say that my partner and I went to the bridge club earlier this ...
    (rec.games.bridge)