Archive for c#
You are browsing the archives of c#.
You are browsing the archives of c#.
I’ve just stumbled upon this quiz which is published as part of a “C# 4.0 In A Nutshell” book, but provides a great test for your LINQ knowledge: C# 4.0/3.0 in a Nutshell – LINQ Quiz There are some particularly tricky ones in there. I fell flat on questions 6 and 9. Those are the [...]
Since the system I work on performs about 1000 DataTable specific manipulations per minute, I’ve been going through and working out some ways to speed it up that little bit more. Take the following code: DataTable myData = new DataTable(); myData.ReadXml(“myxml.xml”); if (myData.Rows[0].IsNull(“column1″)) return null; else return myData.Rows[0]["column1"]; The obvious performance improvement here [...]