Monday, November 23, 2009

I FUCKING HATE HATE SHAREPOINT

Check this out.

I can't post the code, but I retrieve an SPListItemsCollection or whatever it's called.

Then I do a foreach across each item in the collection.

Shit, null reference exception. Where did it occur? It occurred during enumeration of that bitch. Weird.

Now what? Let me debug.

list.Count;

Oh yeah, everything's fine now. That makes perfect sense. What the fuck did they do? Lazy evaluate until they make a certain call?

Let's check.

Nope, reflector says that assembly is too brittle.

Fuck you Sharepoint.

No comments: