Bill Blogs in C#

Bill Wagner discusses C#, LINQ, and other items of interest

Browse by Tags

All Tags » LINQ » C# (RSS)
A Functional Programming Q & A
I received this question in email from one of my readers, and I thought it would be of general interest: I find myself with two arrays of the same size and I want to create a third that combines each element. What I want is something similar to var S3...

Posted by wwagner | 2 comment(s)

The Obligatory Post-MVP Summit Post
Well, I'm back from the MVP Summit, and it seems that tradition mandates a summary of the trip. But there is one problem: The best content was all under NDA. Most MVPs spend their time with members of the product team for their award, and other teams...

Posted by wwagner | with no comments

Filed under: , ,

Project Euler problem 6
Euler Problem six asks you to find the difference between the sum of squares and the square of the sum for the natural numbers 1 through 100. I took the easy route, and made a brute force implementation in C#. There are a couple new bits of LINQ syntax...

Posted by wwagner | 1 comment(s)

Filed under: , , ,

Euler problems in other languages
I've had some comments on the Euler problems, so I'm assuming there is some interest. There's also been interest among other developers in our office. Darrell Hawley has started solving the problems in Python. Marina Fedner has started solving...

Posted by wwagner | with no comments

Filed under: , , ,

Project Euler: Problem 1
I am starting a new series. A friend recently pointed me at the Project Euler problems. You can see the project here: http://projecteuler.net/ As I finish them, I'll post an explanation of the problem and the code here. I've also posted the code...

Posted by wwagner | 6 comment(s)

Filed under: , , ,

Looking Inside C# Closures
If you're like me, you understand new language features better when you see what the new language features generate for you. Closures in C# are no different. There's quite a bit that goes on under the covers in a C# closure. Looking at all the...

Posted by wwagner | 4 comment(s)

My CodeMash Agenda
As I finish my talk preparation for CodeMash, I'm putting together my schedule. You can view the silverlight page here: http://codemash.org/sessionscheduler/?1=2&2=28&3=4&4=7&5=3&7=42&8=14 However, that doesn't let me annotate...

Posted by wwagner | 1 comment(s)

Brian Beckman explains monads
I try to do more original writing here than posting links, but this is too good not to reference. http://channel9.msdn.com/ShowPost.aspx?PostID=358968 Brian Beckman is one of my favorite experts from Channel 9. He's a real rocket scientist, but that's...

Posted by wwagner | 1 comment(s)

Filed under: , , ,

Creating Dynamic Queries in LINQ
Toward the bottom of the LINQ to SQL samples is a set called "advanced". I'm not sure I like that title, because "Advanced" really should read "Things you just haven't done yet". The first set of samples gives you...

Posted by wwagner | 3 comment(s)

Filed under: , ,

DataContext methods in LINQ to Sql
Toward the bottom of the LINQ to SQL samples, you'll find several methods discussing the DataContext class. This is an important class that provides the interface between your code and the physical database storage. There are also some convenient...

Posted by wwagner | with no comments

Filed under: , ,

Two sessions accepted at Code Mash
This year, I've had two sessions accepted for Code Mash: Real World C# 3.0 Now that the release of Visual Studio 2008 is imminent, it’s time to look at how these new features will make you more productive. New toys are great, but this session will...

Posted by wwagner | with no comments

Q & A on generics, techniques, and clarity
I received a question regarding my May column for Visual Studio Magazine. That column showed how you can use anonymous delegates to treat code as data. The example wrote a series of delegates and methods that enabled XML serialization to files, memory...

Posted by wwagner | 2 comment(s)

Filed under: , ,

Linq to Sql and Stored Procedures
Yesterday I discussed Linq to SQL and interoperability with existing database technology. Today I'll look at how Linq to SQL handles stored procedures. Much of the work is done by the database designer, which creates methods that invoke your stored...

Posted by wwagner | 1 comment(s)

Filed under: , ,

Catching up on LINQ content: Interop with existing database access code
Holy crud. The launch is approaching, and I haven't reviewed the features and samples in the 101 * 4 demos in the SampleQueries application. If I want to have any hope of finishing, I need to do this quite a bit more quickly. Next on the list of 101...

Posted by wwagner | 3 comment(s)

Filed under: , ,

VS 2008 VPC images expiring
We interrupt this blog for an important public service announcement. Microsoft has been telling folks that the Visual Studio 2008 Beta 2 VPC images are going to expire on November 1, 2007. The VS 2008 install doesn't expire, but the base OS does....

Posted by wwagner | 2 comment(s)

Filed under: , ,

More Posts Next page »