Geeks With Blogs
Rajeev Ranjan February 2012 Entries
Closures and Captured Variable C#
1 What are closures? 1.1 Evolution of Delegates in C# 1.2 Delegates => Closure 2 Captured Variable 2.1 Value of Captured variable 2.2 Lifetime of Captured Variable 1 What are closures? Closures are function which can be stored in a variable, passed around as parameter and refer to the variables visible at the time they are defined. 1.1 Evolution of Delegates in C# If we look at the evolution of delegates over the time, it has evolved from standard way of declaration to Anonymous method in C# 2.0, ......

Posted On Sunday, February 26, 2012 8:26 AM

Caveats of floating numbers in .Net
Contents Purpose Audience What is floating point number? Types of floating point number in C# System.Single (float) System.Double (double) System.Decimal (decimal) Caveats of floating number Comparing results of double and decimal operations. Comparing performance of binary and decimal floating number When to use decimal? 1. Purpose This article compares the pros and cons of using different floating numbers and discusses when to use what. It stresses upon the implications of using floating numbers ......

Posted On Sunday, February 26, 2012 8:13 AM

Copyright © rajeevr | Powered by: GeeksWithBlogs.net