Browse by Tags
All Tags »
Tips & Tricks »
.NET (
RSS)
Sorry, but there are no more tags available to filter with.
-
|
Here's a little CLR tidbit I picked up today while writing a [RowTest] with MbUnit. If you want to specify a decimal value in C#, you add the suffix m or M . You can read all about it here . This means you might have something in your code like this...
|
-
|
I hate ugly code like this: MyEnum enumValue = (MyEnum) Enum.Parse(typeof (MyEnum), stringValue); Too many casts for my taste. Here's my answer (and yes it's so simple that I am embarrassed to post it, but just in case you haven't thought...
|
More Posts