DotNetShoutout - Stories tagged with fundamentals
5
Shouts

C#/.NET Fundamentals: Unit Testing with Func Generators

published 512 days, 8 hours, 11 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 515 days, 16 hours, 48 minutes ago
Monday, December 26, 2011 8:15:27 AM GMT Thursday, December 22, 2011 11:38:06 PM GMT
I wanted to attempt a brief post before the holidays, so I decided to quickly revisit part a post I wrote a few weeks back on The Generic Func Delegates, and in particular, the sidebar on using Func as a generator for unit testing. At the time, I did not give that short sidebar the attention I really wanted, including showing the setup of the unit tests and discussing the performance impact (if any) of such a practice. So this week I hope to rectify this by revisiting and enhancing the discussion. (more)
category: Web Dev | clicked: 11 | 1 comment | | source: www.blackrabbitcoder.net
tags: .NET, C#, fundamentals, delegates, Func, CSharp, unit testing
4
Shouts

C# Fundamentals: Returning Zero or One Item As IEnumerable

published 527 days, 4 hours, 14 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 529 days, 15 hours, 50 minutes ago
Sunday, December 11, 2011 12:12:15 PM GMT Friday, December 09, 2011 12:36:09 AM GMT
There are times when we are writing a method that returns a sequence of items, that it occasionally becomes necessary in base-class, interface implementation, error, or default conditions to return a sequence of only one or even zero items. There are many ways to do this, of course, which begs the question of which way is best, in terms of readability, maintainability, and performance. (more)
category: Web Dev | clicked: 21 | 1 comment | | source: blackrabbitcoder.net
tags: .NET, C#, fundamentals, IEnumerable, CSharp
2
Shouts

C#/.NET Fundamentals: Safely and Efficiently Raising Events

posted by BlackRabbitCoderBlackRabbitCoder 536 days, 12 hours, 47 minutes ago
Friday, December 02, 2011 3:39:04 AM GMT
A couple of posts ago, I discussed the EventHandler (more)
category: Web Dev | clicked: 6 | 1 comment | | source: www.blackrabbitcoder.net
tags: .NET, C#, fundamentals, delegates, Events, CSharp