BlackRabbitCoder
Name: BlackRabbitCoder
Score: 695.01
Last Seen: 71 days, 23 hours, 7 minutes ago
Member Since: 11 February, 2011
DotNetShoutout
atom rss
5
Shouts

C#/.NET Little Wonders: Extension Methods Demystified

published 62 days, 8 hours, 46 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 71 days, 23 hours, 7 minutes ago
Monday, March 18, 2013 10:18:37 AM GMT Friday, March 08, 2013 7:56:46 PM GMT
I have had the pleasure to program in a variety of programming languages throughout the years including the trifecta of C++, Java, and C#. It's often interesting how these three languages are so similar and yet have such key differences as well. Each of them has features that I miss when I work with the others. But, if I had to pick one standout feature that I love in C# (and long for when working with the other languages) it would be LINQ. There is a wealth of algorithmic and framework components in LI... (more)
category: Web Dev | clicked: 58 | 1 comment | | source: www.blackrabbitcoder.net
tags:
4
Shouts

C#/.NET Little Wonders: Explicit Interface Implementation

published 90 days, 3 hours, 7 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 100 days, 25 minutes ago
Monday, February 18, 2013 3:57:25 PM GMT Friday, February 08, 2013 6:39:29 PM GMT
Most of the time in C#, we implement interfaces implicitly. This is by far the simplest method and makes the method available both to consumers of the interface and the implementing type directly. There are times, though, when you may want to implement an interface, but hide or change how the interface implementation is exposed in the implementing type. This is done through explicit interface implementation, which we will discuss today. (more)
category: Web Dev | clicked: 36 | 1 comment | | source: www.blackrabbitcoder.net
tags:
3
Shouts

C#/.NET Little Wonders: The Parallel.Invoke() Method

posted by BlackRabbitCoderBlackRabbitCoder 149 days, 3 hours, 4 minutes ago
Friday, December 21, 2012 4:00:02 PM GMT
Many times in software development, we want to invoke several processes at one time and continue when we get all the results back. Obviously, if we were needing to process a sequence of items in a similar matter, we could use PLINQ. Unfortunately, when the things we want to invoke asynchronously are heterogeneous tasks, PLINQ doesn’t really fit the bill. Today we will look at a handy method in the Parallel class that can help us accomplish this. (more)
category: Agile | clicked: 5 | 1 comment | | source: www.blackrabbitcoder.net
tags:
3
Shouts

Visual Studio Little Wonders: Quick Launch / Quick Access

published 174 days, 5 hours, 14 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 184 days, 4 hours, 20 minutes ago
Monday, November 26, 2012 1:50:26 PM GMT Friday, November 16, 2012 2:43:49 PM GMT
How often have you wanted to change an option or execute a command in Visual Studio, but can’t remember where the darn thing is in the menu, settings, etc.? If so, Quick Launch in VS2012 (or Quick Access in VS2010 with the Productivity Power Tools extension) is just for you! (more)
category: Web Dev | clicked: 18 | 1 comment | | source: www.blackrabbitcoder.net
tags:
3
Shouts

Visual Studio Little Wonders: Box Selection

published 194 days, 8 hours, 33 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 200 days, 5 hours, 10 minutes ago
Tuesday, November 06, 2012 10:31:15 AM GMT Wednesday, October 31, 2012 1:54:38 PM GMT
So this week I decided I’d do a Little Wonder of a different kind and focus on an underused IDE improvement: Visual Studio’s Box Selection capability. This is a handy feature that many people still don’t realize was made available in Visual Studio 2010 (and beyond). True, there have been other editors in the past with this capability, but now that it’s fully part of Visual Studio we can enjoy it’s goodness from within our own IDE. (more)
category: Web Dev | clicked: 25 | 2 comments | | source: www.blackrabbitcoder.net
tags:
3
Shouts

C#/.NET Little Wonders: Using ‘default’ to Get Default Values

published 202 days, 9 hours, 43 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 212 days, 4 hours, 7 minutes ago
Monday, October 29, 2012 9:21:19 AM GMT Friday, October 19, 2012 2:57:00 PM GMT
Today’s little wonder is another of those small items that can help a lot in certain situations, especially when writing generics. In particular, it is useful in determining what the default value of a given type would be. (more)
category: Web Dev | clicked: 18 | 1 comment | | source: blackrabbitcoder.net
tags:
6
Shouts

C#/.NET Little Wonders: Static Char Methods

published 216 days, 7 hours, 55 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 226 days, 5 hours, 48 minutes ago
Monday, October 15, 2012 11:09:39 AM GMT Friday, October 05, 2012 1:15:44 PM GMT
Often times in our code we deal with the bigger classes and types in the BCL, and occasionally forgot that there are some nice methods on the primitive types as well. Today we will discuss some of the handy static methods that exist on the char (the C# alias of System.Char) type. (more)
category: Web Dev | clicked: 24 | 1 comment | | source: www.blackrabbitcoder.net
tags:
3
Shouts

C#/.NET Little Wonders: The Timeout static class

published 230 days, 8 hours, 48 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 240 days, 5 hours, 51 minutes ago
Monday, October 01, 2012 10:16:12 AM GMT Friday, September 21, 2012 1:13:20 PM GMT
While Timeout.Infinite and Timeout.InfiniteTimeSpan are not earth-shattering classes in terms of functionality, they do give you very handy and readable constant values that you can use in your programs to help increase readability and maintainability when specifying infinite timeouts for various timeouts in the BCL and your own applications. (more)
category: Web Dev | clicked: 22 | 1 comment | | source: www.blackrabbitcoder.net
tags:
3
Shouts

C#/.NET Little Wonders: Interlocked CompareExchange()

published 244 days, 8 hours, 33 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 254 days, 6 hours, 28 minutes ago
Monday, September 17, 2012 10:30:57 AM GMT Friday, September 07, 2012 12:36:19 PM GMT
This week, we’ll round out the discussion by talking about the Interlocked CompareExchange() method and how it can be put to use to exchange a value if the current value is what you expected it to be. (more)
category: Web Dev | clicked: 7 | 1 comment | | source: www.blackrabbitcoder.net
tags:
3
Shouts

C#/.NET Little Wonders: Interlocked Read() and Exchange()

published 262 days, 7 hours, 48 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 268 days, 4 hours, 37 minutes ago
Thursday, August 30, 2012 11:15:56 AM GMT Friday, August 24, 2012 2:27:37 PM GMT
In my previous post, we looked at incrementing and decrementing an int or long atomically using the Interlocked class, this post continues with other features of Interlocked by discussing Read() and Exchange() for reading and writing atomically in a light, thread-safe manner. (more)
category: Web Dev | clicked: 16 | 1 comment | | source: www.blackrabbitcoder.net
tags:
6
Shouts

C#/.NET Little Wonders: Interlocked Increment(), Decrement(), and Add()

published 272 days, 6 hours, 41 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 282 days, 5 hours, 41 minutes ago
Monday, August 20, 2012 12:23:10 PM GMT Friday, August 10, 2012 1:23:41 PM GMT
Often times, we need to update a count in a multi-threaded program. This may be an incrementing, decrementing, or adding a value in a thread-safe manner. This post will discuss one of the lightest ways to do this: the Interlocked class. (more)
category: Web Dev | clicked: 56 | 2 comments | | source: www.blackrabbitcoder.net
tags:
3
Shouts

C#/.NET Little Wondres: The Nullable struct

published 300 days, 9 hours, 23 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 310 days, 5 hours, 18 minutes ago
Monday, July 23, 2012 9:40:57 AM GMT Friday, July 13, 2012 1:46:02 PM GMT
The Nullable (more)
category: Web Dev | clicked: 14 | 1 comment | | source: www.blackrabbitcoder.net
tags:
3
Shouts

C#/.NET Little Wonders: The Joy of Anonymous Types

published 324 days, 3 hours, 11 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 331 days, 5 hours, 55 minutes ago
Friday, June 29, 2012 3:52:43 PM GMT Friday, June 22, 2012 1:09:32 PM GMT
In the .NET 3 Framework, Microsoft introduced the concept of anonymous types, which provide a way to create a quick, compiler-generated types at the point of instantiation. These may seem trivial, but are very handy for concisely creating lightweight, strongly-typed objects containing only read-only properties that can be used within a given scope. (more)
category: Web Dev | clicked: 26 | 1 comment | | source: geekswithblogs.net
tags:
6
Shouts

C#/.NET Little Wonders: Select() and Where() with Indexes

posted by BlackRabbitCoderBlackRabbitCoder 366 days, 6 hours, 40 minutes ago
Friday, May 18, 2012 12:24:24 PM GMT
We’ve talked about the Select() and Where() LINQ extension methods before. The Select() method lets you project from the source type to a new type, and the Where() method lets you filter the list of items to the ones you are interested in. Most people know of these methods in their simplest form, where they simply take a projection and predicate respectively that operates on just an element. However, there are overloads for both of these methods that take a delegate that operates on both the element ... (more)
category: Web Dev | clicked: 8 | 2 comments | | source: www.blackrabbitcoder.net
tags:
4
Shouts

C#/.NET Little Wonders: The Enumerable.Repeat() Static Method

published 373 days, 7 hours, 47 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 380 days, 6 hours, 33 minutes ago
Friday, May 11, 2012 11:16:49 AM GMT Friday, May 04, 2012 12:30:54 PM GMT
The Enumerable.Repeat() method performs the simple task of creating a sequence by repeating an element a specific number of times. While this is, in of itself, a trivial need, it can also be used to drive more useful results such as repeating a generator delegate, or creating sequences out of single items. (more)
category: Web Dev | clicked: 33 | 1 comment | | source: www.blackrabbitcoder.net
tags:
5
Shouts

C#/.NET Little Wonders: The Enumerable.Range() Static Method

published 383 days, 5 hours, 12 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 387 days, 6 hours, 37 minutes ago
Tuesday, May 01, 2012 1:52:33 PM GMT Friday, April 27, 2012 12:27:13 PM GMT
The Enumerable.Range() method performs a very simple function, but it’s results can be used to drive much more complex LINQ expressions. Feel free to use it for generating simple int sequences all the way to generating sequences of a repeated action. Either way, it’s a good tool to keep handy. (more)
category: Web Dev | clicked: 25 | 1 comment | | source: www.blackrabbitcoder.net
tags:
4
Shouts

C#/.NET Little Wonders: Skip() and Take()

published 410 days, 9 hours ago posted by BlackRabbitCoderBlackRabbitCoder 415 days, 18 hours, 45 minutes ago
Wednesday, April 04, 2012 10:04:00 AM GMT Friday, March 30, 2012 12:19:05 AM GMT
I’ve covered many valuable methods from System.Linq class library before, so you already know it’s packed with extension-method goodness. Today I’d like to cover two small families I’ve neglected to mention before: Skip() and Take(). While these methods seem so simple, they are an easy way to create sub-sequences for IEnumerable (more)
category: Web Dev | clicked: 82 | 1 comment | | source: www.blackrabbitcoder.net
tags: .NET, Little Wonders, Take, C#, Skip, CSharp, Linq, TakeWhile, SkipWhile
3
Shouts

C#/.NET Little Wonders – The DateTimeOffset struct

published 431 days, 11 hours, 8 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 436 days, 18 hours, 23 minutes ago
Wednesday, March 14, 2012 7:55:55 AM GMT Friday, March 09, 2012 12:41:09 AM GMT
While the DateTime is a powerful structure for parsing, manipulating, and comparing date-times, it becomes problematic when handling times from different time-zones. The DateTimeOffset is much more portable in that it preserves the offset from UTC. (more)
category: Web Dev | clicked: 58 | 2 comments | | source: www.blackrabbitcoder.net
tags: .NET, Little Wonders, C#, DateTimeoffset, CSharp
2
Shouts

C#/.NET Little Wonders: The SequenceEqual() Method

published 454 days, 19 hours, 30 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 457 days, 17 hours, 35 minutes ago
Sunday, February 19, 2012 11:34:36 PM GMT Friday, February 17, 2012 1:29:06 AM GMT
This post examines a handy method of the Enumerable class that allows you to check if two sequences of values are equal. Equality of two sequences is defined as two sequences of the same length with equivalent values in the same order from both sequences. (more)
category: Web Dev | clicked: 51 | 2 comments | | source: www.blackrabbitcoder.net
tags: .NET, Little Wonders, SequenceEqual, C#, IEnumerable, enumerable, CSharp, Linq
3
Shouts

C#/.NET Little Pitfalls: Implicit Zero To Enum Conversion

published 476 days, 20 hours ago posted by BlackRabbitCoderBlackRabbitCoder 478 days, 17 hours, 34 minutes ago
Saturday, January 28, 2012 11:04:38 PM GMT Friday, January 27, 2012 1:29:56 AM GMT
Many times, we create overloaded methods or constructors to allow them to accept different kinds of data. Further, there are times that we may accept object when any value will do. This works well (aside from boxing/unboxing concerns for value types), but if you have an overload that accepts object and one that takes an enum, and you pass a constant expression of 0, where does it go? (more)
category: Web Dev | clicked: 21 | 1 comment | | source: www.blackrabbitcoder.net
tags: enum, .NET, conversion, C#, Implicit, Little Pitfalls
Previous 1 2 3 Next