CSharpFeeds - All your C# feeds in one place.

Friday, February 02, 2007

Anonymous Recursion in C#

by wesdyer via Yet Another Language Geek on 2/2/2007 10:17:00 PM

Recursion is beautiful and lambdas are the ultimate abstraction.  But how can they be used together?  Lambdas are anonymous functions and recursion requires names.  Let's try to define a lambda that computes the nth fibonacci number. Func<int, int> fib = n => n > 1 ? fib(n - 1) + fib(n - 2) : n; But this doesn't work.  The compiler will complain about the use of fib in the lambda. Use of unassigned local variable 'fib' Eric Lippert has a great blog post on ...

[ read more ]

Context Help Made Easy

by Tom Clement via The Code Project Latest Articles on 2/2/2007 8:12:00 PM

This article introduces a new way of instrumenting your code that enables help authors associate help topics with the application’s visual contexts at any time - even post-compilation – and to do so using the application’s user interface without the involvement of the developer. ...

[ read more ]

More on properties vs fields

by Eric Gunnerson via Eric Gunnerson's Compendium : CSharp on 2/2/2007 7:59:00 PM

Some nice comments on what I wrote. First, a non-controversial question. Robin asked whether you would capitalize them in that case, and I think you should, as having something accessed externally that isn't properly cased will be surprising to people. Dani - and others - have pointed out that properties leave your options open in case the software is used in ways that make the property more useful. This is certainly true, and I think it comes down to how you value that flexibility over the tax ...

[ read more ]

Timer surprises, and how to avoid them

by Luc Pattyn via The Code Project Latest Articles on 2/2/2007 7:32:00 PM

A simple app demonstrates unexpected behavior of .NET timers and Thread.Sleep(); native multimedia timers come to the rescue. ...

[ read more ]

Anonymous Recursion in C#

by wesdyer via Yet Another Language Geek on 2/2/2007 7:17:00 PM

Recursion is beautiful and lambdas are the ultimate abstraction.  But how can they be used together?  Lambdas are anonymous functions and recursion requires names.  Let's try to define a lambda that computes the nth fibonacci number. Func<int, int> fib = n => n > 1 ? fib(n - 1) + fib(n - 2) : n; But this doesn't work.  The compiler will complain about the use of fib in the lambda. Use of unassigned local variable 'fib' Eric Lippert has a great blog post on ...

[ read more ]

The localizable Dropdown for ASP.NET 2.0

by sea_caty via The Code Project Latest Articles on 2/2/2007 6:01:00 PM

This code shows how to do a simple localizable dropdown that sets up the options from suitable text ...

[ read more ]

StringEnumerator

by Rudy Rihani via The Code Project Latest Articles on 2/2/2007 5:07:00 PM

A utility class relying on Generics and Attributes that allows strings to be enumerated (as enums) ...

[ read more ]

Send a request to an SSL page from C#

by prussoniello via The Code Project Latest Articles on 2/2/2007 12:37:00 PM

Send a request to an SSL page from C# ...

[ read more ]

Outlook To OneNote AddIn

by John Guin via The Code Project Latest Articles on 2/2/2007 8:46:00 AM

An article on creating a useful addin using Outlook and OneNote 2007 ...

[ read more ]

Using Multiple NHibernate Assemblies with NHSessionManager

by Ali Ozgur via The Code Project Latest Articles on 2/2/2007 7:13:00 AM

This article describes how NHSessionManager can be configured to use multiple NHibernate assemblies ...

[ read more ]

Say Hello to Tracking Service!!

by akshayswaroop via The Code Project Latest Articles on 2/2/2007 6:50:00 AM

This article explains the intricacy of implementing a custom tracking service ...

[ read more ]

Adding commandbar controls to outlook

by Kamlesh_Singh via The Code Project Latest Articles on 2/2/2007 6:10:00 AM

Adding buttons, events on outlook application ...

[ read more ]

Access image metadata using Visual Studio's new object data binding feature

by johnhreynolds via The Code Project Latest Articles on 2/2/2007 3:45:00 AM

Using a new class library to bind to photo metadata with a few line of code. ...

[ read more ]

CodeSnip: Validating XML Data using the XML Schema Definition

by Uday Denduluri via ASPAlliance.com - Articles, reviews, and samples for .NET Developers on 2/2/2007 12:00:00 AM

This code snippet explains how to validate an XML Document with an XSD schema file. ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us