CSharpFeeds - All your C# feeds in one place.

Sponsors

Feed: Did it with .NET

Site: http://diditwith.net/ Link: http://feeds.feedburner.com/DidItWithDotNet

Thursday, March 04, 2010

Empty Nothings

by Dustin Campbell via Did it with .NET on 3/4/2010 3:42:19 PM

A few weeks ago, some of my colleagues and I were discussing the idiosyncrasies of various programming languages (as we often find ourselves doing—we’re kind of geeky that way), when one of us pointed out that the following code is completely valid C++0x syntax: [](){}(); The “operator soup”1 above defines a C++ lambda expression (denoted by the square brackets) which declares no parameters (the first empty parentheses) or body (the empty curly braces) and ...

[ read more ]

Saturday, October 24, 2009

Naming Anonymous Types with Generate from Usage

by Dustin Campbell via Did it with .NET on 10/24/2009 6:01:40 PM

Now that Visual Studio 2010 Beta 2 is finally out the door, I’ve had a bit more time to spend coding on some of my personal projects. Yesterday, I happened upon a cool trick while using the new Generate from Usage feature. It was so helpful to me that I thought others might benefit, so I’m sharing it here. The Anonymous Type Problem When you need to project some data from a LINQ expression, anonymous types can be enormously convenient. ...

[ read more ]

Thursday, December 20, 2007

Twelve Days of Refactor! X-mas, Day One: Make Implicit

by Dustin Campbell via Did it with .NET on 12/20/2007 6:31:39 PM

Gentle readers, in the spirit of X-mas, I'd like to sing you a carol. This jolly tune (based on a popular old English carol) enumerates ways that Refactor! Pro can warm your installation of Visual Studio 2008 this holiday season. In contrast to some of our... ahem... <whisper>competition</whisper>, the features I'll be showing can be used today. In fact, most of these features have been shipping since Visual Studio 2008 was still a wee child ...

[ read more ]

Friday, November 23, 2007

C# 2.5?

by Dustin Campbell via Did it with .NET on 11/23/2007 3:29:08 PM

Visual Studio 2008's multi-targeting support for compiling projects to different versions of the .NET Framework is very powerful. Multi-targeting is a compelling feature because it enables users to continue working on solutions that target .NET Framework 2.0 and 3.0 while upgrading to the latest and greatest IDE. What isn't obvious is that all projects, regardless of target, are compiled with the C# 3.0 compiler. That means users can employ many of the new C# 3.0 language features in legac ...

[ read more ]

Wednesday, November 14, 2007

Improve Your C#! Borrow from F#...

by Dustin Campbell via Did it with .NET on 11/14/2007 4:17:23 AM

While exploring F#, I've grown increasingly impressed by the libraries that ship with it. One of the main purposes of the libraries is to provide underlying support for the language itself. In addition, they contain important modules and classes necessary for functional programming (e.g. immutable List and Map types). However, the most practical aspect of these libraries to me is the rich set of APIs that facilitate using the .NET Framework in a more functional way. These APIs are often di ...

[ read more ]

Friday, September 28, 2007

Distinctly LINQ

by Dustin Campbell via Did it with .NET on 9/28/2007 5:47:20 PM

Recently, I presented an example of how closures can cause headaches when used in the context of LINQ expressions: static class Program {   static void Main()   {     var filter = String.Empty;       var query = from m in typeof(String).GetMethods()                 orderby m.Name                 where m.Name != filter                 select m.Name;       foreach (var item in query)     {       Console.WriteLine(item);       filter = item;     ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us