Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » CLR   (RSS)
LINQ to Objects and Buffer<T>
I was debugging a problem a couple of days ago, when I learned something interesting. I had some code that looked like this: foreach(Employee e in manager.Manages) { … } The manager.Manages property returned a custom implementation of ICollection<Employee> Read More...
Nullable=”False”… but when exactly?
If you look at the EDM and in particular the metadata it considers important, one thing is clear: Persistence is the Priority . For example this: <Property Name=”Firstname” Type=”String” Nullable=”False”/> Tells us that the Firstname property can’t Read More...
LINQ to non-enumerable?
So I was reading Wes' latest post about Monad's a while back (which incidentally is well worth a read, it is the first good explanation of Monad 's I've seen that uses a language I am comfortable with in it's examples, namely C#). Well one thing Wes kind Read More...
T CastByExample<T>(object o, T example)
So earlier today I was lamenting that an anonymous type can't be shared between functions with Wes Dyer , when he said "Well actually they can..." Cue me learning something cool. The first step is to create a seemingly innocent method: public static T Read More...
Page view tracker