Click here to Skip to main content
15,879,490 members
Articles / Programming Languages / C#

C# CodeDOM parser

Rate me:
Please Sign up or sign in to vote.
4.56/5 (14 votes)
27 Jun 20026 min read 247.6K   4.3K   70  
This is a utility which parses C# source code and creates the CODEDOM tree of the code.
using System;
using System.Collections;

namespace testParser
{
	#region Blabla
	using System.IO;
	/// <summary>
	/// Summary description for Class2.
	/// </summary>
	abstract public class Class2: object, System.Collections.ICollection
	{
		
		
		
		private int i;
		
		protected internal int MethodA(int i, char j)
		{
		}

		public int PropA 
		{
			get
			{
			}
			set
			{
			}
		}

		public virtual string PropB
		{
			get
			{
			}
		}

		

		protected override object PropC
		{
		set 
		{
	}
	}

		public static long PropD 
		{
			get 
			{
			}
		}

		public object this[int i] 
		{
			get 
			{
			}
		}
		internal object this[string s]
		{
			get 
			{
			}
			set
			{
			}
		}

		//explicit implementation
		public object AAA.BBB.this[string s]
		{
			get
			{
			}
		}
		
		
	}

	
	public interface Int1: System.Collections.IList
	{
	}

	public struct Struct1:  System.Collections.IList, System.Xml.IXmlLineInfo
	{
	}
	public enum Enum1: int
	{
	}

	public delegate string Deleg1(out int i, char[] j);
#endregion	
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Czech Republic Czech Republic
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions