Quantcast
Channel: Dev102.com » List
Browsing latest articles
Browse All 10 View Live

How to Convert List(T1) to List(T2)

Did you ever need to convert List(T1) to List(T2)? One example might be when implementing an interface. you might need to expose a collection of other interfaces (or maybe the same interface), But you...

View Article


A Programming Job Interview Challenge #11 – Summing Numbers

The eleventh post of the series of programming job interview challenge is out. 75 readers provided answers to job interview challenge #10 and most of them had the correct solution. The correct answer...

View Article

List.Sort(), Comparer and IComparable

Hi In my previous article I talked about why SortedList is not a good option to use if you need a sorted collection with keys that are not unique. Today I will show you how to use a regular generic...

View Article

A Programming Job Interview Challenge #12 – Managed and Unmanaged

The twelfth post of the series of programming job interview challenge is out, 31 readers provided answers to job interview challenge #11. I have to admit that I probably failed explaining what I was...

View Article

Image may be NSFW.
Clik here to view.

How to Search the File System Using LINQ Queries

Here is something neat I found out. Say you are writing an application and one of the requirements is to allow File System search. You could always start using loops and such. I thought to myself why...

View Article


Image may be NSFW.
Clik here to view.

A Programming Job Interview Challenge #13 – Brackets

The thirteen post of the series of programming job interview challenge is out, Only 13 comments with answers were provided to job interview challenge #12. This is a small amount comparing to the...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio – See Your TODO Comments In One List

How many times did you write a TODO comment in your code? How many times did you forget about this comment and met it again only some months later? It happens a lot to most of the developers who...

View Article

Image may be NSFW.
Clik here to view.

Filtering List Items, The Old, The New and the Slick

Hi all   I was into filtering items lately and I have decided to write about some of the techniques out there starting with the old   The good old Foreach Well we have all used this before once you get...

View Article


Filtering List Items – The Yield Return Solution

Here we are talking about filtering list items again :). I got two comment suggesting the use of yield return. James Curran said: Don’t build a new list if you don’t have to. private static IEnumerable...

View Article


Image may be NSFW.
Clik here to view.

Don’t Use a WPF Control in Windows.Resource

Hi   Here is a problem that one of my colleagues who is just starting to use WPF got himself into. He was working on an application that displays items using an ItemsControl and uses a DataTemplate....

View Article
Browsing latest articles
Browse All 10 View Live