Nach Ordnungsbegriffen durchsuchen

Alle Ordnungsbegriffe » Development (RSS)

Hosting an Automated Build Server von .Net Smoothie

I’m the build server guy at my company. I’ve been using an automated integration service for about 3 years, and I love it. It really helps keep me disciplined. Before my build server was running, we had a constant problem with missing files...

C# Acrobatics : Lambdas and Expression Methods as a replacement for NVelocity von .Net Smoothie

I’ve been very quiet recently. (I’m trying to not be so loud, Scott. ) You see, I’ve been writing a lot of ASP.Net code for a site I’m working on. And, to be honest, I’ve been having a lot of trouble. The source code for...

Easy Data-loading with LINQ-to-SQL and LINQ-to-XML von .Net Smoothie

.Net 3.5 had some nice tricks in it. LINQ-to-XML was one of them. With the new "X"-types, you can make working with XML really easy. VB.Net 9 takes it one step further, and lets you write XML in your code without strings. "Hey Rich, that’s...

Design Guidelines for LINQ von .Net Smoothie

Have you wondered if and when you should use the new LINQ features in .Net 3.5? Like, where should I put a new extension method? Should I use Func<T> or a custom delegate? How do I best implement a mix-in (extension methods on an interface)? Well...

ExtensionMethod.net - An Extension Methods Database von .Net Smoothie

While surfing around tonight, I came across ExtensionMethod.net, a database of useful Extension Methods for C# 3.0 and VB 9. I thought it might be useful, so I added a few of my own extension methods. IComparable<T>.LessThan int.Times int.To There...

Remove and Sort Those Ugly “using-Statements” von .Net Smoothie

Visual Studio 2008 has lots of goodies in it, like LINQ syntax, CSS editing, and testing tools. There’s a lesser-known feature which I really appreciate though - the “Remove and Sort Usings” command in the C# editor. You activate the...

Refactoring C# Series: Aggregation of IEnumerable von .Net Smoothie

I was recently reading this book about the Ruby programming language, and came across this piece of example code: [1,3,5,7].inject(0) {|sum, element| sum+element} -> 16 [1,3,5,7].inject(1) {|product, element| product*element} ...

A Pure ASP.Net Grid with Grouping von .Net Smoothie

One of my favorite bloggers is Matt Berseth. Nearly once a week he comes up with a post where he does something amazing with the standard ASP.Net controls. I usually read his posts in awe. He’s really good. But he’s not only is a good developer...

The LinqDataSource and the Hidden Viewstate von .Net Smoothie

Yesterday I thought I’d learn about the LinqDataSource in ASP.Net 3.5, and got an interesting surprise. The new LinqDataSource can also be used with a LINQ-to-SQL model to perform updates. You simply add the DataSource to your page, set the table...

Calculating the Fibonacci Sequence with C# 3.0 von .Net Smoothie

Scott Hanselman just posted his latest article in his weekly source code series. He shows various ways of producing the Fibonacci Sequence using various languages. I found it really interesting, for two reasons: I tried to do the C#3.0 one on my own after...

Using LinqPad to Create a Time-Selector Drop-Down List von .Net Smoothie

I am really getting into LINQ now! I think it’s fantastic. I recently wanted to develop a quick drop-down list in ASP.Net which allows a user to select a time of day from a list. The times are 15 minutes apart, so the list would look like this:...
Abgelegt unter: , , , , ,

Using Lambda Expressions with LINQ to SQL von .Net Smoothie

When using LINQ, you need to be careful to use the right kind of Lambda expression. “What, there is more than one kind?”, I hear you gasp. There sure is! And if you aren’t careful, you’ll get a nice little message at runtime to...
Abgelegt unter: , , , ,

Inserting into a Table with LINQ to SQL von .Net Smoothie

While creating a little project, I wanted to know how to insert an object into a table using LINQ to SQL. Using Intellisense it wasn’t obvious at all. Scott Guthrie wrote a post on how do it. Unfortunately, the method name has changed since he did...
Abgelegt unter: , , , ,

Efficient Software Development with Visual Studio Team System 2008 von .Net Smoothie

I was recently asked to do some research and give a presentation about using Visual Studio Team System 2008. I thought I’d experiment with Slideshare.net and post it here. The presentation was for a large corporation, and will possibly not come...

Can You Pass an Anonymous Type Across Functions? von .Net Smoothie

One of the biggest questions with Anonymous Types is “can I pass them around?” If not, why not? Can you do something like this, for example: var GetAnonymousValue() { return new { Name = “Richard Bushnell” }; } void Main() { var...
Mehr Beiträge Nächste Seite »