• /r/csharp
  • Newbie learning LINQ…

    Expectation (tutorial): var q = from p in Products where p.Color == "Blue" select p; Reality (Visual Studio): int ColorIndex = 1; var q = from p in Products.AsEnumerable().AsQueryable().AsCollectable() where p.ItemArray[ColorIndex].Field<typeof("String")>(ColorIndex).ToString() == "Blue" select p; Performance test: Old good SQL = 0.003 sec LINQ = 519 yrs 4 mths 23 days 3 hrs 17 mins […]

  • /r/csharp
  • My first helper class – mailto

    Looking for input, criticism, advice. I'm still learning, and while this may be a somewhat trivial helper class, I do have a real world need/want to formulate a mailto URL is a less sticky way. This is especially true when you are including multiple recipients and a body of something more than just a one […]