By tag: Extension
0
kicks
Randomizing Enumerables via Extension Methods
Randomize all the values in an IEnumerable or choose a random value using extension methods and LINQ, enumerating the collection only once.
0
kicks
Getting Started with LINQ - Part 2 (Language Enhancements)
In my previous post I summarized Microsoft Language Integrated Query (LINQ). Briefly discussed about its components as well as showed some code examples to highlight the sql query type syntax it uses. When we talk about LINQ, we are talking about number of little features that were added in .net 3.0...
0
kicks
Update on Generic Extension Methods project.
Some activity of note on the Generic Extension Methods project.
0
kicks
IQueryable: Sorting, Paging, Searching and Counting
A good post that contains extension methods that add sorting, paging, seacrching and countain functionality to IQueryable objects.
0
kicks
Finding missing numbers in a list using LINQ with C#
Let’s say you have a list of integer values that represent the days of a month like this: 6, 2, 4, 1, 9, 7, 3, 10, 13, 15, 19, 11, 18, 13, 22, 24, 20, 27, 31, 25, 28 - Clearly we have missing numbers/days in the list. They are: 5 8 12 14 16 17 21 23 26 29 30. It’s really easy to get a list of missin...
0
kicks
BlogEngine extension to ignore duplicate comments
BlogEngine extension to add validation then ignore duplicate comments
0
kicks
How to prevent Extension methods from appearing as global functions
C# have static (or shared) classes which VB lacks. Instead VB uses modules which are almost the same thing. One thing differs though and that is that modules makes its public methods appear as global accessible functions, meaning you don’t have to type the ModuleName.MethodName() when calling such a...
0
kicks
WSS/SharePoint Extension 1.2 for Visual Studio 2008
Finally it’s out, get it while it’s hot. Now you SharePoint developers no longer need to hesitate to upgrade to Visual Studio 2008 if you haven’t. Some tips are provided if you need to install the extension on your XP/Vista machine (i.e. not having WSS 3.0 preinstalled).
0
kicks
Link thumbnails extension for BlogEngine.NET
New link thumbnails extension for BlogEngine.NET 1.3 available for download.
0
kicks
BlogEngine.net DotNetKicks Extension
Describes a BlogEngine.NET Extension that allows the submission of articles to DotNetKicks from a Blog page.
0
kicks
BlogEngine Extension: Copy Code to Clipboard
An extension for BlogEngine.net that adds a "copy to clipboard" link to all code posted via Windows Live Writer's Code Snippet plugin.
0
kicks
Implementing the Each method in C# collections.
Ruby has it, Prototype add it to JavaScript array. I find myself using it a lot, why not to implement it in C#?
Take a look at a quiet take on this one.
0
kicks
Introducing C# 3 – Part 2
This is the second of a four part series on C# 3.0. It covers extension methods, explaining what they are, when to use them and how to write them. It then moves on to lambda expressions, explaining the syntax and showing how C# 2.0 anonymous methods can be re-written using the new syntax. It also lo...