DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

fquednau Subscribe to this feed
fquednau
Profile Kicked Submitted Comments Tags Friends Kicked By Friends Submitted By Friends


Comments:

Huh? Digg effect in .NETkicks?! Mirror anyone?
posted by fquednau fquednau 28 days, 11 hours ago

You forgot that you can skip the brackets if your block consists of a single line.

OMG!
posted by fquednau fquednau 1 month, 26 days ago

You've got to the kidding...
In another post, someone writes on the merits of being able to compare against null.
posted by fquednau fquednau 2 months, 9 days ago

That I call detailed!
posted by fquednau fquednau 4 months, 9 days ago

Although I find that usage awkward. Such an extension method always made more sense to me to be attached to the string, not the enum, replacing it by ref...

"Value".ToEnum<SomeEnum>();
posted by fquednau fquednau 4 months, 13 days ago

Oh, we still do smilies in code? *sigh*
posted by fquednau fquednau 4 months, 15 days ago

I think I'd prefer this, it's far more reusable:

public static A GetAttribute<A>(this Enum @enum)
where A : Attribute
{
if (!@enum.GetType().IsEnum)
return null;
object[] attributes = @enum.GetType().GetField(@enum.ToString()).GetCustomAttributes(typeof(A), false);
return attributes.Length > 0 ? (A)attributes[0] : null;
}
posted by fquednau fquednau 4 months, 15 days ago

Breaking news? You mean more like breaking waves...the principal wave already arrived two frontpage posts down. ts...
posted by fquednau fquednau 4 months, 16 days ago

That's too complicated to be on .Netkicks front page =)
posted by fquednau fquednau 5 months, 5 days ago

Note to self: compiler-directive + using alias = use either MSTest or NUnit. Nice!
posted by fquednau fquednau 5 months, 15 days ago

Ah, so I 'm actually doing monostate?
Seriously, I always thought Singleton is keeping an single instance of some object. As long as you implement all relevant ops as instance members of said object and give some entry point into your singleton keeper you're still well on your way for testability and all OO glory.
posted by fquednau fquednau 7 months, 2 days ago

Has been around for quite a while now. I quite like it, but it should be an opt in thing:
http://research.microsoft.com/specsharp/?0sr=a - Spec# home
http://research.microsoft.com/specsharp/papers/krml136.pdf - Intro to Spec# features
posted by fquednau fquednau 7 months, 3 days ago

Lovely...in theory developerexchange.com is still free. Go grab it! A new source of revenue for high-class dev teams?
posted by fquednau fquednau 7 months, 9 days ago

So you recreated attached properties? Fascinating...
posted by fquednau fquednau 7 months, 9 days ago

He is some sort of modern hero, I'd think...
posted by fquednau fquednau 7 months, 10 days ago
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge