Posts tagged as c#.

Posts are listed in reverse chronological order, newest to oldest.

  • (Don't) Catch 'Em All!

    I want to be the very best, like no one ever was! To catch them is my real test, to train them is my cause...

  • Implementing ASP.NET Membership with a Custom Provider

    Perhaps one of the most ubiquitous means of user management in an ASP.NET application is the oft-maligned Membership library, but let's be honest; the default Membership tools are pretty terrible. If you use the default Membership, Roles, and Profile providers, you're going to have the awesome privilege of dealing with a database schema that revolves around serializing user information to BLOB fields.

  • C# Hashing Utility

    I've had a frequent need lately to create various hash-strings (implementing a Gravatar helper, for instance), and I thought some of you might find the utility class I created useful. It's self-contained (other than the obvious reliance on .NET assemblies) and includes an enumeration I created to make the hash-type more obvious to work with.

  • C#, XML, and LINQ: Deleting an XML Node

    So far we've learned how to load & parse an XML file, add new nodes to it, and update it's nodes. Today we're gonna learn the scary part: deleting nodes.

  • C#, XML, and LINQ: Updating an XML File

    So far, I have shown you how to load and parse an XML document into a C# class, and also how to add new nodes to an XML document using C#. So now we have reached the fun part: updating an existing node!

  • C#, XML, and LINQ: Adding Nodes to an XML File

    My previous example only covered loading and parsing an XML document. This example will include the code I used to add new nodes to the XML tree.

  • C#, XML, and LINQ: Load & Parse an XML File

    I promised an example of using LINQ and C# together before the month was out, and it here it is! Whoo. Go me.

  • C# Sample: Timing Class

    This timing class can be used to test the execution time of your C# algorithms. We used it to compare the time it took various sort and search functions to complete execution.

  • C# Sample: RandomDataSet Class

    This is a class I had to code for a project to demonstrate a handful of sort and search algorithms. It is a self-contained class that can be used to build a List of integers. You could easily modify this class to manipulate pretty much any Collection.

  • OOP and C#: Making a Sample Class

    Understanding the principles of OOP (object-oriented programming) is very important for those who wish to become .NET programmers, since the .NET Framework is built on the premise that everything is an Object. Since C# was created specifically to implement the .NET Framework, it stands to reason that C# is a good language to demonstrate the development of an object from a logical construct to a piece of working code. The code we will develop here can also be modified to work in pretty much any language that supports OOP. So, get your pencils and notepads ready, kids. It's time to build an object!

  • An Interesting Use of a C# Foreach Loop

    I've seen many different ways of clearing the contents of controls in a Windows Form object, some of which can be quite elaborate. While it can be fun to come up with these convoluted schemes, there is an easier way. Here's what I do...