Re: Passing Objects and protection level

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



[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
    ... Jon. ... > newsgroup.] ... > variable is called age, ... > 2) You're trying to access PassYears as if it were a static method, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Coming soon: Turbo COBOL from Micro Focus :-)
    ... You are paying less for lower ability, not age. ... industries for older workers include finance and insurance, manufacturing, ... much the same with tuition reimbursement except that the older person is ...
    (comp.lang.cobol)
  • Re: Coming soon: Turbo COBOL from Micro Focus :-)
    ... Bill Gunshannon wrote: ... You are paying less for lower ability, not age. ... industries for older workers include finance and insurance, manufacturing, ...
    (comp.lang.cobol)
  • Re: Coming soon: Turbo COBOL from Micro Focus :-)
    ... or do younger workers also cost the company less ... to the company are pretty much the same regardless of age. ... Expected health spending = age-sex factor x health factor x experience ...
    (comp.lang.cobol)
  • Re: To John Harshman -- re Isochrons
    ... Why does a molten core act like a solid? ... How are fossils dated? ... If the age of rocks are not times since solidification but a view ... I addressed this in my previous post, and your response was to snip ...
    (talk.origins)