Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » Applications » Downloads
 
Add your own
alternative version

XsdTidy beautifies the Xsd.exe output *with full DocBook .NET Wrapper*

, 1 Mar 2004
Refactors the Xsd.exe classes. Shipped with a full .NET wrapper of DocBook.
xsdtidy_demo.zip
Release
NDocBook.Cons.exe
XsdTidy.dll
xsdtidy_src.zip
XsdTidy
Collections
XsdTidy.csproj.user
NDocBook
NDocBook.Xsd.csproj.user
Xsd
calstbl.xsx
dbcent.xsx
dbhier.xsx
dbnotn.xsx
dbpool.xsx
docbook.xsx
README
NDocBook.Cons
App.ico
NDocBook.Cons.csproj.user
NDocBook.Test
App.ico
NDocBook.Test.csproj.user
using System;
using System.Reflection;
using System.Reflection.Emit;

namespace XsdTidy.Collections
{
	/// <summary>
	/// A dictionary with keys of type FieldInfo and values of type FieldBuilder
	/// </summary>
	public class FieldInfoFieldBuidlerDictionary: System.Collections.DictionaryBase
	{
		/// <summary>
		/// Initializes a new empty instance of the FieldInfoFieldBuidlerDictionary class
		/// </summary>
		public FieldInfoFieldBuidlerDictionary()
		{
			// empty
		}

		/// <summary>
		/// Gets or sets the FieldBuilder associated with the given FieldInfo
		/// </summary>
		/// <param name="key">
		/// The FieldInfo whose value to get or set.
		/// </param>
		public virtual FieldBuilder this[FieldInfo key]
		{
			get
			{
				return (FieldBuilder) this.Dictionary[key];
			}
			set
			{
				this.Dictionary[key] = value;
			}
		}

		/// <summary>
		/// Adds an element with the specified key and value to this FieldInfoFieldBuidlerDictionary.
		/// </summary>
		/// <param name="key">
		/// The FieldInfo key of the element to add.
		/// </param>
		/// <param name="value">
		/// The FieldBuilder value of the element to add.
		/// </param>
		public virtual void Add(FieldInfo key, FieldBuilder value)
		{
			this.Dictionary.Add(key, value);
		}

		/// <summary>
		/// Determines whether this FieldInfoFieldBuidlerDictionary contains a specific key.
		/// </summary>
		/// <param name="key">
		/// The FieldInfo key to locate in this FieldInfoFieldBuidlerDictionary.
		/// </param>
		/// <returns>
		/// true if this FieldInfoFieldBuidlerDictionary contains an element with the specified key;
		/// otherwise, false.
		/// </returns>
		public virtual bool Contains(FieldInfo key)
		{
			return this.Dictionary.Contains(key);
		}

		/// <summary>
		/// Determines whether this FieldInfoFieldBuidlerDictionary contains a specific key.
		/// </summary>
		/// <param name="key">
		/// The FieldInfo key to locate in this FieldInfoFieldBuidlerDictionary.
		/// </param>
		/// <returns>
		/// true if this FieldInfoFieldBuidlerDictionary contains an element with the specified key;
		/// otherwise, false.
		/// </returns>
		public virtual bool ContainsKey(FieldInfo key)
		{
			return this.Dictionary.Contains(key);
		}

		/// <summary>
		/// Determines whether this FieldInfoFieldBuidlerDictionary contains a specific value.
		/// </summary>
		/// <param name="value">
		/// The FieldBuilder value to locate in this FieldInfoFieldBuidlerDictionary.
		/// </param>
		/// <returns>
		/// true if this FieldInfoFieldBuidlerDictionary contains an element with the specified value;
		/// otherwise, false.
		/// </returns>
		public virtual bool ContainsValue(FieldBuilder value)
		{
			foreach (FieldBuilder item in this.Dictionary.Values)
			{
				if (item == value)
					return true;
			}
			return false;
		}

		/// <summary>
		/// Removes the element with the specified key from this FieldInfoFieldBuidlerDictionary.
		/// </summary>
		/// <param name="key">
		/// The FieldInfo key of the element to remove.
		/// </param>
		public virtual void Remove(FieldInfo key)
		{
			this.Dictionary.Remove(key);
		}

		/// <summary>
		/// Gets a collection containing the keys in this FieldInfoFieldBuidlerDictionary.
		/// </summary>
		public virtual System.Collections.ICollection Keys
		{
			get
			{
				return this.Dictionary.Keys;
			}
		}

		/// <summary>
		/// Gets a collection containing the values in this FieldInfoFieldBuidlerDictionary.
		/// </summary>
		public virtual System.Collections.ICollection Values
		{
			get
			{
				return this.Dictionary.Values;
			}
		}
	}

}

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

Share

About the Author

Jonathan de Halleux
Engineer
United States United States
Jonathan de Halleux is Civil Engineer in Applied Mathematics. He finished his PhD in 2004 in the rainy country of Belgium. After 2 years in the Common Language Runtime (i.e. .net), he is now working at Microsoft Research on Pex (http://research.microsoft.com/pex).

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150129.1 | Last Updated 2 Mar 2004
Article Copyright 2004 by Jonathan de Halleux
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid