Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Red-Black Trees in C#

, 14 Sep 2004
A C# implementation of a Red-Black Tree.
redblackcs_src.zip
RedBlackCS
bin
Release
RedBlackCS.dll
obj
Release
temp
TempPE
RedBlackCS.csproj.user
Test
bin
release
RedBlackCS.dll
Test.exe
obj
Release
temp
TempPE
Test.csproj.user
using RedBlackCS;

namespace Test
{
	public class MyObj
	{
		private int     intMyObjKey;
		private string  myData;
		
		public int Key
		{
			get
            {
				return intMyObjKey;
			}
			
			set
			{
				intMyObjKey = value;
			}
		}
		public string Data
		{
			get
            {
				return myData;
			}
			
			set
			{
				myData = value;
			}
		}
		
		public MyObj(int key, string data) 
        {
			this.Key    = key;
			this.Data   = data;
		}
		
		public override string ToString()
		{
			return intMyObjKey.ToString();
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

RoyClem
Architect
United States United States
Roy is a software developer who digs all aspects of software development, from design and architecture to implementation.

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 14 Sep 2004
Article Copyright 2004 by RoyClem
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid