DotNetShoutout - Stories tagged with Func
5
Shouts

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

published 511 days, 3 hours, 8 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 514 days, 11 hours, 45 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
3
Shouts

C#/.NET Little Wonders: The Generic Func Delegates

published 554 days, 4 hours, 57 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 556 days, 10 hours, 59 minutes ago
Sunday, November 13, 2011 6:26:32 AM GMT Friday, November 11, 2011 12:24:49 AM GMT
Back in one of my three original “Little Wonders” Trilogy of posts, I had listed generic delegates as one of the Little Wonders of .NET. Later, someone posted a comment saying said that they would love more detail on the generic delegates and their uses, since my original entry just scratched the surface of them. Last week, I began our look at some of the handy generic delegates built into .NET with a description of delegates in general, and the Action family of delegates. For this week, I’ll launch i... (more)
category: Web Dev | clicked: 16 | 1 comment | | source: blackrabbitcoder.net
tags: .NET, Little Wonders, C#, delegates, Func, CSharp
6
Shouts

How to Write a Recursive Func

published 758 days, 22 hours, 14 minutes ago posted by KodefuGuruKodefuGuru 761 days, 16 hours, 29 minutes ago
Friday, April 22, 2011 1:10:00 PM GMT Tuesday, April 19, 2011 6:54:37 PM GMT
Lambda expressions can be cryptic, but they’re quite simple once you get the hang of them. One thing that can trouble developers is the ability to write recursive calls within a Func, something that’s quite simple inside of a method... (more)
category: How To | clicked: 1 | comment | | source: www.kodefuguru.com
tags: Func, Recursion, action
4
Shouts

Continuation-Passing Style Overload

published 997 days, 23 hours, 44 minutes ago posted by KodefuGuruKodefuGuru 998 days, 21 hours, 3 minutes ago
Thursday, August 26, 2010 11:39:36 AM GMT Wednesday, August 25, 2010 2:20:24 PM GMT
I wrote about continuation-passing style in a post a couple of months ago, and I’ve had time to ruminate over it since. One consideration I had is whether to return a type or not. This is easily handled by overloading the method. I also describe how I created an executable with Func (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: CPS, C#, Func, functional, continuations
5
Shouts

Summation Functions

published 1026 days, 22 hours, 18 minutes ago posted by KodefuGuruKodefuGuru 1027 days, 22 hours, 24 minutes ago
Wednesday, July 28, 2010 1:05:43 PM GMT Tuesday, July 27, 2010 12:59:46 PM GMT
Creating a summation function in C# isn’t difficult in itself. After all, it is perfectly reasonable to create functions that consist of more than one line. What is interesting is abstracting it so that any function can become a summation function. (more)
category: How To | clicked: 2 | comment | | source: www.kodefuguru.com
tags: Extension Methods, VB, C#, query expressions, Func
6
Shouts

Call a Function to Infinity

published 1028 days, 1 hour, 31 minutes ago posted by KodefuGuruKodefuGuru 1028 days, 21 hours, 12 minutes ago
Tuesday, July 27, 2010 9:52:03 AM GMT Monday, July 26, 2010 2:11:28 PM GMT
What if the resulting value of a function was used to feed the parameter of the same function? It easy enough to call a function, get its result, then pass it back in. However, I wanted to abstract this and make it work for anything whose generic parameter type is the same as the generic result type. If it’s abstracted, there must be some arbitrary end point… right? How about infinity? (more)
category: Agile | clicked: 1 | comment | | source: www.kodefuguru.com
tags: C#, Func, extension method, Recursion
7
Shouts

Playing with C# Func and ADO.NET

posted by http://derans.myopenid.com/http://derans.myopenid.com/ 1210 days, 8 hours, 30 minutes ago
Tuesday, January 26, 2010 2:53:23 AM GMT
I’ve always liked the look of the generic Func and I think the possibilities behind it are awesome. However, it’s usually difficult for me to find a good place to use it. I’m probably just not that used to using it yet and I am missing out on some huge advantages. Ignorance is not bliss sometimes :) So anyhow, I was playing with the good ole ExecuteScalar & ExecuteNonQuery commands on the IDbCommand interface and came up with something kinda cool. At least I thought so… (more)
category: Web Dev | clicked: 1 | comment | | source: derans.blogspot.com
tags: Generics, ADO.NET, Func