Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

Browse by Tags

All Tags » C# » Generics
  • Generic Recursive Find Control Extension

    Earlier today I posted about a Recursive Find Control Extension Method. I was informed recently by Steve Smith that I should check out the generic find control method which Aaron Robson has on his blog. He has some pretty nice methods there, so I just adapted them to be extension methods now. As extension methods the code looks like this. ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on March 31, 2008
  • C# Generics vs C++ Templates

    I regularly meet with a group of my college friends with whom I studied Computer Science. While at a great local bar we have plenty of interesting computer-related conversations. A lot of .NET developers probably spend most of their time discussing technical topics with other .NET developers. Our conversations are much more interesting because ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on January 30, 2008
  • Understanding the Queue Data Structure Using a Simple C# Implementation

    Introduction The Queue is a very important and common Data Structure in Computer Science. As the name queue suggests, this data structure can be described with an analogy of waiting in a line. There is no cutting allowed in the line, so the first person in the line is the first person out of the line. With the data structure it is the same way ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on October 10, 2007
  • Simple C# Stack Implementation

    I've just written a quick little stack implementation for use in explaining the stack data structure. It is written in C# and is not exactly a robust solution, but it works well enough. It is stubbed out with the basics of what is required to have a working stack. If you don't know how a Stack works, I also recommend reading my Simple Explanation ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on October 9, 2007
  • From the odder than odd dept

    Can anyone tell me why the commented out line fails to compile, whereas the next line succeeds? Sure, it's a runtime vs compiletime thing, but why does C# prevent me from casting from a string to (T), whereas the very next line it lets me cast from an object to (T).   using System; class X {       ...
    Posted to C# Nuggets (Weblog) by rbirkby on October 24, 2006