Thanks to all for their replies.

Jim

> -----Original Message-----
> From: Jim Arnold [mailto:[EMAIL PROTECTED]]
> Sent: 24 May 2002 18:00
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Accessing struct properties
>
>
> Can someone help me get my tiny brain around this?  Given this struct:
>
> struct Foo {
>
>     string _bar;
>
>     public string Bar {
>         get{return _bar;}
>         set{_bar = value;}
>     }
> }
>
> Why can I do this:
>
> but *not* this:
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to