Browse by Tags

Tagged Content List
  • Blog Post: Optional arguments on both ends

    Before we get into today's topic, a quick update on my posting from last year about Roslyn jobs. We have gotten a lot of good leads and made some hires but we still have positions open, both on the Roslyn team and on the larger Visual Studio team. For details, see this post on the Visual Studio blog...
  • Blog Post: Query transformations are syntactic

    As you probably know, there are two ways to write a LINQ query in C#. The way I personally prefer is to use the “query comprehension” syntax: from customer in customerList where customer.City == "London" select customer.Name Or you can, equivalently, use the “fluent method call” syntax: customerList...
  • Blog Post: Computers are dumb

    A few short takes today, from questions I've received recently about LINQ in C# 3.0. The first question was " in the following code, does it really check every single non-negative integer, or does it use the knowledge that once you're beyond ten, you can stop iterating? " var smallNumbers = Enumerable...
  • Blog Post: Covariance and Contravariance, Part Eleven: To infinity, but not beyond

    UPDATE: Andrew Kennedy, author of the paper I reference below, was good enough to point out some corrections and omissions, which I have addressed. Thanks Andrew! As I've discussed at length in this space, we are considering adding covariance and contravariance on delegate and interface types parameterized...
  • Blog Post: Do not use string hashes for security purposes

    A recent question I got about the .NET CLR's hashing algorithm for strings is apropos of our discussion from January on using salted hashes for security purposes . The question was basically "my database of password hashes doesn't seem to work with .NET v2.0, what's up with that?" To make a long story...
Page 1 of 1 (5 items)