Re: Why properties cannot be used as ref or out arguments
Jon Skeet <[email protected]> Mon, 10 Mar 2008 09:45:36 +0000
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
Dean Cleaver wrote: > Ah. Yes. Didn't think of the actual mechanics of how it presented the > properties behind it all. Thank you. > > Is a shame though - or is there any way I can get around it using > delegates? I have a function that I require to set one of two > properties, and return a 3rd? Is it sufficiently general that you could create an interface with the properties in, and then pass an implementation of that interface into the method? You certainly *could* do it with delegates, but it would feel a little ugly. Jon =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com