CSharpFeeds - All your C# feeds in one place.

Monday, February 01, 2010

Sponsor

Style follows semantics

by Eric Lippert via Fabulous Adventures In Coding on 2/1/2010 4:29:00 PM

Which is better style? bool abc;if (Foo())  abc = Bar();else  abc = false; vs bool abc = Foo() && Bar(); ? To me, this comes down to the question “is Bar useful solely for obtaining its value, or also for its side effects?” The stylistic choices should typically be driven by a desire to clearly communicate the semantics of the program fragment. The metasyntatic names are therefore making this harder to answer, not easier. Suppose the choice were in fact between: bool loginSucc ...

[ read more ]

Sunday, January 31, 2010

Acer 1420P Leaky Handle Driver Fix

by Brian Peek via Brian's Blog on 1/31/2010 10:07:00 PM

Download: SDTabletPCFix_1.0.0.0.zip I wasn’t lucky enough to receive the Acer 1420P laptop given out at PDC this year since I was “staff”, however I wound up picking one up on eBay for a very reasonable price.  I received it last week, added an additional 2GB of RAM, used my Windows Home Server to save off the original hard drive image, and then repaved the machine, installing Windows 7 Ultimate x64, drivers, and applications from scratch.  Earlier this week I noticed the machine was ...

[ read more ]

Thursday, January 28, 2010

Calling constructors in arbitrary places

by Eric Lippert via Fabulous Adventures In Coding on 1/28/2010 3:10:00 PM

C# lets you call another constructor from a given constructor, but only before the body of the calling constructor runs: public C(int x) : this(x, null){  // …}public C(int x, string y){  // …} Why can you call another constructor at the beginning of a constructor block, but not at the end of the block, or in the middle of the block? Well, let's break it down into two cases. (1) You're calling a "base" constructor, and (2) you're calling a "this" constructor. For the "base" scenar ...

[ read more ]

Extensible Output Caching with ASP.NET 4 (VS 2010 and .NET 4.0 Series)

by ScottGu via ScottGu's Blog on 1/28/2010 7:27:22 AM

[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu] This is the fourteenth in a series of blog posts I’m doing on the upcoming VS 2010 and .NET 4 release.  Today’s post covers some of the output caching extensibility improvements being made to ASP.NET 4.  These can be used by all ASP.NET 4 applications – including those built using both ASP.NET Web Forms and ASP.NET MVC. Output Caching Today ASP.NET ...

[ read more ]

Wednesday, January 27, 2010

Creating attached properties

by luisabreu via LA.NET [EN] on 1/27/2010 10:20:27 AM

Now that you understand what attached properties are, we’re in the position to look at what is needed for creating attached properties. Since we’re building custom code, we do really need to rely in the RegisterAttached method (of the DependencyProperty class). Creating a new attached properties means doing the following: adding a static DependencyProperty field to the class; using the RegisterAttached method for creating the field which is used as a store for the dependency property; ...

[ read more ]

Playing With LINQ: Getting Interface Property Implementations

by Paulo Morgado via Paulo Morgado : C# on 1/27/2010 2:22:00 AM

Today, my friend Nuno was writing some code to get the PropertyInfos of a class implementation of an interface. Given this interface:public interface ISomeInterface { int IntProperty { get; set; } string StringProperty { get; } void Method(); } and this class:public class SomeClass : ISomeInterface { int ISomeInterface.IntProperty { get; set; } public int IntProperty { get; private set; } public string StringProperty { get; private set; } public void Method() { } } Nu ...

[ read more ]

Tuesday, January 26, 2010

Type initialization changes in .NET 4.0

by skeet via Jon Skeet: Coding Blog on 1/26/2010 5:48:00 PM

This morning, while checking out an email I'd received about my brain-teasers page, I discovered an interesting change to the CLR in .NET 4.0. At least, I think it's interesting. It's possible that different builds of the CLR have exhibited different behaviour for a while - I only have 32-bit versions of Windows installed, so that's what I'm looking at for this whole post. (Oh, and all testing was done under .NET 4.0b2 - it could still change before release.) Note: to try any ...

[ read more ]

Magellan is on CodePlex

by Paul Stovell via Paul Stovell on 1/26/2010 7:04:16 AM

I have migrated the Magellan source code and releases to CodePlex. http://magellan.codeplex.com A few benefits to using CodePlex are: I use TeamCity to publish releases for each check in (thanks to the MSBuild Deployment Tools project). The releases are hidden at first (in case they have problems) and once I have tested them they become public. You can use the RSS feed to stay up to date. You can use the Issue Tracker to report bugs. You can use the online source code b ...

[ read more ]

Monday, January 25, 2010

My ASP.NET MVC in Action talk from Houston TechFest (webcast)

by Jeffrey Palermo via Jeffrey Palermo (.com) on 1/25/2010 10:02:00 PM

Here is a talk I gave on 26 September 2009 at the Houston TechFest.  Thanks to Shawn Weisfeld for recording it! ...

[ read more ]

Why are unused using directives not a warning?

by Eric Lippert via Fabulous Adventures In Coding on 1/25/2010 3:00:00 PM

As I’ve discussed before, we try to reserve warnings for only those situations where we can say with almost certainty that the code is broken, misleading or useless. One reason for trying to ensure that warnings are not “false positives” is that we don’t ever want to encourage someone to take working, correct code and break it so as to remove the warning. Another is that since many people compile with “warnings are errors” turned on, we do not want to introduce a whole lot of unnecessary build ...

[ read more ]

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