Yeah debugging is a bit of a pain - there's no F5, so to start a debugging session you shake the phone in anger. :)
From: [email protected] [mailto:[email protected]] On Behalf Of David Burela Sent: Wednesday, February 16, 2011 8:42 PM To: ozDotNet Subject: Re: LINQ extensions Last year when I was presenting on WP7, I did have someone in the audience ask me once when Microsoft would get VS2010 running on Windows Phone 7. I can't even imagine what it would be like trying to write code with a touchscreen and predictive text. Or how he'd want to debug code. On 17 February 2011 14:46, Peter Gfader <[email protected]<mailto:[email protected]>> wrote: >>VS stopped working on my phone David, you are not really running VS on your WP... are you? .peter.gfader. http://blog.gfader.com On Thu, Feb 17, 2011 at 1:49 PM, David Kean <[email protected]<mailto:[email protected]>> wrote: Hmm...that wasn't to my recollection. I could have sworn that it allowed indexing and length checks even if the underlying implementations didn't support it (ie not via late binding). Unfortunately VS stopped working on my phone so I'll need to wait until I get in back in the office to play around. Sent from my Windows Phone -----Original Message----- From: Bill McCarthy Sent: Wednesday, February 16, 2011 6:28 PM To: 'ozDotNet' Subject: RE: LINQ extensions That's only if you have Strict Off and use late binding. |-----Original Message----- |From: [email protected]<mailto:[email protected]> [mailto:ozdotnet-<mailto:ozdotnet-> |[email protected]<mailto:[email protected]>] On Behalf Of David Kean |Sent: Thursday, 17 February 2011 1:18 PM |To: ozDotNet |Subject: RE: LINQ extensions | |Not true - try this in VB. | |Sent from my Windows Phone |________________________________ | |From: Tristan Reeves |Sent: Wednesday, February 16, 2011 5:24 PM |To: ozDotNet |Subject: Re: LINQ extensions | | |That's true, but you never would, with or without linq. That is because |IEnumerable does not have such a property. | | |On Wed, Feb 16, 2011 at 4:55 PM, James Chapman-Smith |<[email protected]<mailto:[email protected]>> wrote: | | | LINQ doesn't cause `.Length` to disappear, but if you assign the array to |an `IEnumerable<T>` then you won't seen the `.Length` property. | | | | From: [email protected]<mailto:[email protected]> [mailto:ozdotnet-<mailto:ozdotnet-> |[email protected]<mailto:[email protected]>] On Behalf Of Tristan Reeves | Sent: Wednesday, 16 February 2011 11:54 | | | To: ozDotNet | Subject: Re: LINQ extensions | | | | | | | | But Length is always a (valid) property of arrays, whether or not LINQ is |reference. Or are you saying that Length "disappears" when LINQ is |referenced? | | | | Tristan. | | On Tue, Feb 15, 2011 at 4:23 PM, Ian Thomas <[email protected]<mailto:[email protected]>> |wrote: | | Michael - slip of the fingers - yes, it was a .Count method (when LINQ is |referenced), and a .Length property (when not). Not weird, lang c# | | | | |________________________________ | | | Ian Thomas | Victoria Park, Western Australia | | |________________________________ | | | From: [email protected]<mailto:[email protected]> [mailto:ozdotnet-<mailto:ozdotnet-> |[email protected]<mailto:[email protected]>] On Behalf Of Michael Minutillo | Sent: Tuesday, February 15, 2011 1:20 PM | To: ozDotNet | Subject: Re: LINQ extensions | | | | Weird. It should add a .Count() extension method, not a property. Are |you coding in a language that has optional parentheses by any chance? | | On Tue, Feb 15, 2011 at 1:12 PM, Ian Thomas <[email protected]<mailto:[email protected]>> |wrote: | | FYI only | | Just an oddity I hadn't taken in before, that a reference to LINQ makes |.Count a valid property of arrays (otherwise .Length is valid). | | I had been using LINQ to Objects in a small projects and changed it to |not do so, meticulously cleaned references to LINQ out (VS2008 does not seem |to do that thoroughly), and had a couple of errors arise with myarrays.Count |statements I had been slack enough to write previously. | | Framework 3.5 | | |________________________________ | | | Ian Thomas | Victoria Park, Western Australia | | | | | -- .peter.gfader. http://blog.gfader.com/ http://twitter.com/peitor
