Click here to Skip to main content
15,881,173 members
Articles / Programming Languages / C#

Regular Expression Library Builder

Rate me:
Please Sign up or sign in to vote.
4.63/5 (24 votes)
14 Jun 2005CPOL7 min read 142.1K   3.5K   92  
A tool to quickly allow the creation and modification of .NET Regular Expression Libraries
using System;
using System.Collections;
using System.Text.RegularExpressions;

namespace Dela.RegexLibraryBuilder.Collections
{
   [Serializable]
	public class RegexCompilationInfoCollection : CollectionBase
	{
		public int Add(System.Text.RegularExpressions.RegexCompilationInfo value)
		{
			return base.List.Add(value as object);
		}

		public void Remove(System.Text.RegularExpressions.RegexCompilationInfo value)
		{
			base.List.Remove(value as object);
		}

		public void Insert(int index, System.Text.RegularExpressions.RegexCompilationInfo value)
		{
			base.List.Insert(index, value as object);
		}

		public bool Contains(System.Text.RegularExpressions.RegexCompilationInfo value)
		{
			return base.List.Contains(value as object);
		}

		public System.Text.RegularExpressions.RegexCompilationInfo this[int index]
		{
			get { return (base.List[index] as System.Text.RegularExpressions.RegexCompilationInfo); }
		}

      public RegexCompilationInfo[] ToArray()
      {
         return (RegexCompilationInfo[]) base.InnerList.ToArray(typeof(RegexCompilationInfo));
      }
	}
}

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)


Written By
Software Developer (Senior)
United States United States
Irish guy living in Seattle who is passionate about technology, running, trail running. Software Engineer @Microsoft by day (and night too Smile | :) )

He is an ex Codeproject Editor... time restrictions are still a problem.

Comments and Discussions