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

Multiple convolution neural networks approach for online handwriting recognition

, 9 Apr 2013 CPOL
The research focuses on the presentation of word recognition technique for an online handwriting recognition system which uses multiple component neural networks (MCNN) as the exchangeable parts of the classifier.
capital_letter_v2.zip
capital letter v2.nnt
digit_v2.zip
digit v2.nnt
lower_case_letter_v2.zip
lower case letter v2.nnt
UNIPENviewer_source_code-noexe.zip
UNIPENviewer
DocToolkit
DocToolkit.csproj.user
DocToolkit.snk
obj
Debug
Release
DrawTools
about.bmp
App.ico
bin
Debug
Release
DrawTools.csproj.user
ellipse.bmp
Ellipse.cur
line.bmp
Line.cur
new.bmp
obj
Debug
DrawTools.DrawArea.resources
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
Release
DrawTools.DrawArea.resources
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
open.bmp
pencil.bmp
Pencil.cur
pointer.bmp
PolyHandle.cur
rectangle.bmp
Rectangle.cur
save.bmp
NNControl
bin
Debug
Common
NNTesting
NNTraining
obj
Debug
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
NNControl.Common.UPTemplateControl.resources
NNControl.FlashForm.resources
NNControl.NNTesting.NNTestingControl.resources
NNControl.NNTesting.TextSpellControl.resources
NNControl.NNTraining.ConvolutionForm.resources
NNControl.NNTraining.CreateNetworkForm.resources
NNControl.NNTraining.FullConnectedForm.resources
NNControl.NNTraining.InputLayerForm.resources
NNControl.NNTraining.OutputLayerForm.resources
NNControl.NNTraining.UP_NNTrainingControl.resources
NNControl.Properties.Resources.resources
NNControl.TrainingParametersForm.resources
NNControl.UPViewer.UpImageViewer.resources
UPControl.Common.BaseControl.resources
UPControl.Common.UPTemplateControl.resources
UPControl.FlashForm.resources
UPControl.NNTraining.UP_NNTrainingControl.resources
UPControl.TrainingParametersForm.resources
UPControl.UPViewer.UpImageViewer.resources
UP_NeuralTraining.FlashForm.resources
UP_NeuralTraining.TrainingParametersForm.resources
UP_NeuralTraining.UP_NNTrainingControl.resources
Release
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
NNControl.Common.UPTemplateControl.resources
NNControl.FlashForm.resources
NNControl.NNTesting.NNTestingControl.resources
NNControl.NNTraining.ConvolutionForm.resources
NNControl.NNTraining.CreateNetworkForm.resources
NNControl.NNTraining.FullConnectedForm.resources
NNControl.NNTraining.InputLayerForm.resources
NNControl.NNTraining.OutputLayerForm.resources
NNControl.NNTraining.UP_NNTrainingControl.resources
NNControl.Properties.Resources.resources
NNControl.TrainingParametersForm.resources
NNControl.UPViewer.UpImageViewer.resources
Properties
Resources
btnBack.png
btnDrag.png
btnFitToScreen.png
btnNext.png
btnOpen.png
btnPreview.png
btnRotate270.png
btnRotate90.png
btnSelect.png
btnZoomIn.png
btnZoomOut.png
circle.png
clear.png
color_line.png
cry.png
document-new.png
Drag.cur
draw_line.png
ellipse.png
export.png
file.png
fingerprint-recognition.png
folder-open.png
folder.png
folders_explorer.png
Grab.cur
home.png
label-link.png
pointer.png
rectangle.png
save_accept.png
script_(stop).gif
smile.png
stock_draw-line.png
Stop sign.png
Upload.png
user-group-new.png
UPViewer
Perceptron
ActivationFunction
ArchiveSerialization
bin
Debug
Common
Connections
Layers
Network
Neurons
obj
Debug
ANN.Perceptron.Common.BaseControl.resources
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
Neurons.BaseControl.resources
Release
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
Neurons.BaseControl.resources
Properties
Weights
SpellChecker
bin
Debug
Controls
Dictionary
Affix
Dictionary.bmp
Phonetic
doc
NetSpell.ndoc
Forms
Interactive.bmp
obj
Debug
ResGen.read.1.tlog
ResGen.write.1.tlog
SpellChecker.Dictionary.WordDictionary.resources
SpellChecker.Forms.OptionForm.resources
SpellChecker.MultipleSpelling.resources
SpellChecker.NewSpelling.resources
Spell.snk
Spelling.bmp
UNIPENviewer.suo
UNIPENviewer.v11.suo
UNIPENviewer
bin
Debug
Config
de-DE.dic
en-US.dic
fr-FR.dic
it-IT.dic
UNIPENviewer.vshost.exe.manifest
Release
Config
obj
Debug
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
UNIPENviewer.MainForm.resources
UNIPENviewer.Properties.Resources.resources
Release
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
UNIPENviewer.MainForm.resources
UNIPENviewer.Properties.Resources.resources
x86
Debug
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
UNIPENviewer.Form1.resources
UNIPENviewer.Properties.Resources.resources
Properties
Settings.settings
UPImage
Common
Data
FileFormat
obj
Debug
Release
Properties
UNIPENviewer_source_code.zip
bin
Debug
DocToolkit.dll
DocToolkit.pdb
Release
DocToolkit.dll
DocToolkit.csproj.user
DocToolkit.snk
DesignTimeResolveAssemblyReferencesInput.cache
DocToolkit.dll
DocToolkit.pdb
TempPE
DesignTimeResolveAssemblyReferencesInput.cache
DocToolkit.dll
about.bmp
App.ico
DocToolkit.dll
DocToolkit.pdb
DrawTools.dll
DrawTools.pdb
DocToolkit.dll
DrawTools.dll
DrawTools.csproj.user
ellipse.bmp
Ellipse.cur
line.bmp
Line.cur
new.bmp
DesignTimeResolveAssemblyReferencesInput.cache
DrawTools.csproj.GenerateResource.Cache
DrawTools.csprojResolveAssemblyReference.cache
DrawTools.dll
DrawTools.DrawArea.resources
DrawTools.pdb
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
ResolveAssemblyReference.cache
TempPE
DesignTimeResolveAssemblyReferencesInput.cache
DrawTools.dll
DrawTools.DrawArea.resources
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
ResolveAssemblyReference.cache
open.bmp
pencil.bmp
Pencil.cur
pointer.bmp
PolyHandle.cur
rectangle.bmp
Rectangle.cur
Resources
save.bmp
DocToolkit.dll
DocToolkit.pdb
DrawTools-LinhLam.dll
DrawTools-LinhLam.pdb
DrawTools.dll
DrawTools.pdb
NNControl-LinhLam.dll
NNControl-LinhLam.pdb
NNControl.dll
NNControl.pdb
Perceptron.dll
Perceptron.pdb
SpellChecker.dll
SpellChecker.pdb
UP-NeuralTraining.dll
UP-NeuralTraining.pdb
UPImage-LinhLam.dll
UpImage.dll
UpImage.pdb
Release
DocToolkit.dll
DrawTools.dll
Neurons.dll
Neurons.pdb
NNControl.dll
NNControl.pdb
UPImage.dll
UPImage.pdb
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
NNControl-LinhLam.dll
NNControl-LinhLam.pdb
NNControl.Common.UPTemplateControl.resources
NNControl.csproj.GenerateResource.Cache
NNControl.csprojResolveAssemblyReference.cache
NNControl.dll
NNControl.FlashForm.resources
NNControl.NNTesting.NNTestingControl.resources
NNControl.NNTesting.TextSpellControl.resources
NNControl.NNTraining.ConvolutionForm.resources
NNControl.NNTraining.CreateNetworkForm.resources
NNControl.NNTraining.FullConnectedForm.resources
NNControl.NNTraining.InputLayerForm.resources
NNControl.NNTraining.OutputLayerForm.resources
NNControl.NNTraining.UP_NNTrainingControl.resources
NNControl.pdb
NNControl.Properties.Resources.resources
NNControl.TrainingParametersForm.resources
NNControl.UPViewer.UpImageViewer.resources
ResolveAssemblyReference.cache
TempPE
Properties.Resources.Designer.cs.dll
UP-NeuralTraining.dll
UP-NeuralTraining.pdb
UPControl.Common.BaseControl.resources
UPControl.Common.UPTemplateControl.resources
UPControl.FlashForm.resources
UPControl.NNTraining.UP_NNTrainingControl.resources
UPControl.TrainingParametersForm.resources
UPControl.UPViewer.UpImageViewer.resources
UP_NeuralTraining.FlashForm.resources
UP_NeuralTraining.TrainingParametersForm.resources
UP_NeuralTraining.UP_NNTrainingControl.resources
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
NNControl.Common.UPTemplateControl.resources
NNControl.dll
NNControl.FlashForm.resources
NNControl.NNTesting.NNTestingControl.resources
NNControl.NNTraining.ConvolutionForm.resources
NNControl.NNTraining.CreateNetworkForm.resources
NNControl.NNTraining.FullConnectedForm.resources
NNControl.NNTraining.InputLayerForm.resources
NNControl.NNTraining.OutputLayerForm.resources
NNControl.NNTraining.UP_NNTrainingControl.resources
NNControl.pdb
NNControl.Properties.Resources.resources
NNControl.TrainingParametersForm.resources
NNControl.UPViewer.UpImageViewer.resources
ResolveAssemblyReference.cache
TempPE
Properties.Resources.Designer.cs.dll
btnBack.png
btnDrag.png
btnFitToScreen.png
btnNext.png
btnOpen.png
btnPreview.png
btnRotate270.png
btnRotate90.png
btnSelect.png
btnZoomIn.png
btnZoomOut.png
circle.png
clear.png
color_line.png
cry.png
document-new.png
Drag.cur
draw_line.png
ellipse.png
export.png
file.png
fingerprint-recognition.png
folder-open.png
folder.png
folders_explorer.png
Grab.cur
home.png
label-link.png
pointer.png
rectangle.png
save_accept.png
script_(stop).gif
smile.png
stock_draw-line.png
Stop sign.png
Upload.png
user-group-new.png
AForgeLibrary.dll
AForgeLibrary.pdb
NeuralNetworkLibrary.dll
NeuralNetworkLibrary.pdb
Perceptron.dll
Perceptron.pdb
SpellChecker.dll
SpellChecker.pdb
UpImage.dll
UpImage.pdb
Release
NeuralNetworkLibrary.dll
NeuralNetworkLibrary.pdb
Neurons.dll
Neurons.pdb
UPImage.dll
UPImage.pdb
ANN.Perceptron.Common.BaseControl.resources
ANN.Perceptron.csproj.GenerateResource.Cache
ANN.Perceptron.csprojResolveAssemblyReference.cache
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
NeuralNetworkLibrary.dll
NeuralNetworkLibrary.pdb
Neurons.BaseControl.resources
Perceptron.dll
Perceptron.pdb
ResolveAssemblyReference.cache
TempPE
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
NeuralNetworkLibrary.dll
NeuralNetworkLibrary.pdb
Neurons.BaseControl.resources
Neurons.dll
Neurons.pdb
ResolveAssemblyReference.cache
Service References
SpellChecker.dll
SpellChecker.pdb
Release
Dictionary.bmp
NetSpell.ndoc
Interactive.bmp
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
NetSpell.SpellChecker.dll
NetSpell.SpellChecker.pdb
ResGen.read.1.tlog
ResGen.write.1.tlog
SpellChecker.csproj.GenerateResource.Cache
SpellChecker.csprojResolveAssemblyReference.cache
SpellChecker.Dictionary.WordDictionary.resources
SpellChecker.dll
SpellChecker.Forms.OptionForm.resources
SpellChecker.MultipleSpelling.resources
SpellChecker.NewSpelling.resources
SpellChecker.pdb
TempPE
Spell.snk
Spelling.bmp
UNIPENviewer.suo
UNIPENviewer.v11.suo
de-DE.dic
DocToolkit.dll
DocToolkit.pdb
DrawTools-LinhLam.dll
DrawTools-LinhLam.pdb
DrawTools.dll
DrawTools.pdb
en-US.dic
fr-FR.dic
it-IT.dic
NNControl-LinhLam.dll
NNControl.dll
NNControl.pdb
Perceptron.dll
Perceptron.pdb
SpellChecker.dll
SpellChecker.pdb
UNIPENviewer-LinhLam.exe
UNIPENviewer-LinhLam.pdb
UNIPENviewer.exe
UNIPENviewer.pdb
UNIPENviewer.vshost.exe
UNIPENviewer.vshost.exe.manifest
UPImage-LinhLam.dll
UPImage-LinhLam.pdb
UpImage.dll
UpImage.pdb
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
ResolveAssemblyReference.cache
TempPE
Properties.Resources.Designer.cs.dll
UNIPENviewer-LinhLam.exe
UNIPENviewer-LinhLam.pdb
UNIPENviewer.csproj.GenerateResource.Cache
UNIPENviewer.csprojResolveAssemblyReference.cache
UNIPENviewer.exe
UNIPENviewer.MainForm.resources
UNIPENviewer.pdb
UNIPENviewer.Properties.Resources.resources
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
ResolveAssemblyReference.cache
UNIPENviewer.exe
UNIPENviewer.MainForm.resources
UNIPENviewer.pdb
UNIPENviewer.Properties.Resources.resources
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource.read.1.tlog
GenerateResource.write.1.tlog
ResolveAssemblyReference.cache
UNIPENviewer.exe
UNIPENviewer.Form1.resources
UNIPENviewer.pdb
UNIPENviewer.Properties.Resources.resources
Settings.settings
bin
Debug
AForgeLibrary.dll
AForgeLibrary.pdb
UPDatabase.dll
UPDatabase.pdb
UpImage-LinhLam.dll
UpImage-LinhLam.pdb
UpImage.dll
UpImage.pdb
UPUnipenLib.dll
UPUnipenLib.pdb
Release
UPImage.dll
UPImage.pdb
DesignTimeResolveAssemblyReferencesInput.cache
TempPE
UPDatabase.dll
UPDatabase.pdb
UpImage-LinhLam-2.pdb
UpImage-LinhLam.dll
UPImage-LinhLam.pdb
UpImage.dll
UpImage.pdb
UPUnipenLib.dll
UPUnipenLib.pdb
DesignTimeResolveAssemblyReferencesInput.cache
UPImage.dll
UPImage.pdb
Word_samples.zip
Word samples
beach.dtl
Bengal.dtl
best.dtl
Brower.dtl
Buy.dtl
Byte byte.dtl
Change.dtl
Color.dtl
Company.dtl
Complet.dtl
copy.dtl
cup.dtl
draw tool.dtl
Eastern.dtl
Eat.dtl
eldest.dtl
Emergency.dtl
English.dtl
File.dtl
Finist.dtl
found nothing.dtl
France.dtl
Future.dtl
help me now.dtl
Hey hello.dtl
Hobby.dtl
How are you.dtl
Huck.dtl
icon.dtl
inker.dtl
Internet.dtl
Link.dtl
load.dtl
Local.dtl
Lonely.dtl
loosen.dtl
love you.dtl
Madden.dtl
Main gate.dtl
Mercy.dtl
Module.dtl
monday.dtl
Moon.dtl
mouse.dtl
my turn.dtl
net spell.dtl
network.dtl
never.dtl
newest.dtl
noted.dtl
Novel.dtl
oldest.dtl
Option.dtl
Pencil.dtl
petro.dtl
Pink.dtl
quick and slow.dtl
Rock.dtl
save.dtl
Sell.dtl
slam.dtl
smart phone.dtl
Strong.dtl
Strongest.dtl
success.dtl
Summer.dtl
Take.dtl
Text.dtl
Took.dtl
Train.dtl
Tuesday.dtl
Valence.dtl
Victory.dtl
viewer.dtl
vintage.dtl
Volume.dtl
water.dtl
Weak.dtl
Window.dtl
Windy.dtl
word expert.dtl
using System;
using System.Collections;

namespace SpellChecker.Dictionary.Affix
{
	/// <summary>
	///     A dictionary collection that stores 'AffixRule' objects.
	/// </summary>	
	public class AffixRuleCollection : IDictionary, ICollection, IEnumerable, ICloneable
	{
		/// <summary>
		///     Internal Hashtable
		/// </summary>
		protected Hashtable innerHash;
		
		#region "Constructors"
		
		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		public  AffixRuleCollection()
		{
			innerHash = new Hashtable();
		}
		
		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="original" type="AffixRuleCollection">
		///     <para>
		///         A 'AffixRuleCollection' from which the contents is copied
		///     </para>
		/// </param>
		public AffixRuleCollection(AffixRuleCollection original)
		{
			innerHash = new Hashtable (original.innerHash);
		}
		
		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="dictionary" type="System.Collections.IDictionary">
		///     <para>
		///         The IDictionary to copy to a new 'AffixRuleCollection'.
		///     </para>
		/// </param>
		public AffixRuleCollection(IDictionary dictionary)
		{
			innerHash = new Hashtable (dictionary);
		}

		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="capacity" type="int">
		///     <para>
		///         The approximate number of elements that the 'AffixRuleCollection' can initially contain.
		///     </para>
		/// </param>
		public AffixRuleCollection(int capacity)
		{
			innerHash = new Hashtable(capacity);
		}

		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="dictionary" type="System.Collections.IDictionary">
		///     <para>
		///         The IDictionary to copy to a new 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="loadFactor" type="float">
		///     <para>
		///         A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets.
		///     </para>
		/// </param>
		public AffixRuleCollection(IDictionary dictionary, float loadFactor)
		{
			innerHash = new Hashtable(dictionary, loadFactor);
		}

		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="codeProvider" type="System.Collections.IHashCodeProvider">
		///     <para>
		///         The IHashCodeProvider that supplies the hash codes for all keys in the 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="comparer" type="System.Collections.IComparer">
		///     <para>
		///         The IComparer to use to determine whether two keys are equal.
		///     </para>
		/// </param>
		public AffixRuleCollection(IHashCodeProvider codeProvider, IComparer comparer)
		{
			innerHash = new Hashtable (codeProvider, comparer);
		}

		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="capacity" type="int">
		///     <para>
		///         The approximate number of elements that the 'AffixRuleCollection' can initially contain.
		///     </para>
		/// </param>
		/// <param name="loadFactor" type="int">
		///     <para>
		///         A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets.
		///     </para>
		/// </param>
		public AffixRuleCollection(int capacity, int loadFactor)
		{
			innerHash = new Hashtable(capacity, loadFactor);
		}


		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="dictionary" type="System.Collections.IDictionary">
		///     <para>
		///         The IDictionary to copy to a new 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="codeProvider" type="System.Collections.IHashCodeProvider">
		///     <para>
		///         The IHashCodeProvider that supplies the hash codes for all keys in the 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="comparer" type="System.Collections.IComparer">
		///     <para>
		///         The IComparer to use to determine whether two keys are equal.
		///     </para>
		/// </param>
		public AffixRuleCollection(IDictionary dictionary, IHashCodeProvider codeProvider, IComparer comparer)
		{
			innerHash = new Hashtable (dictionary, codeProvider, comparer);
		}
		
		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="capacity" type="int">
		///     <para>
		///         The approximate number of elements that the 'AffixRuleCollection' can initially contain.
		///     </para>
		/// </param>
		/// <param name="codeProvider" type="System.Collections.IHashCodeProvider">
		///     <para>
		///         The IHashCodeProvider that supplies the hash codes for all keys in the 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="comparer" type="System.Collections.IComparer">
		///     <para>
		///         The IComparer to use to determine whether two keys are equal.
		///     </para>
		/// </param>		
		public AffixRuleCollection(int capacity, IHashCodeProvider codeProvider, IComparer comparer)
		{
			innerHash = new Hashtable (capacity, codeProvider, comparer);
		}

		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="dictionary" type="System.Collections.IDictionary">
		///     <para>
		///         The IDictionary to copy to a new 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="loadFactor" type="float">
		///     <para>
		///         A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets.
		///     </para>
		/// </param>
		/// <param name="codeProvider" type="System.Collections.IHashCodeProvider">
		///     <para>
		///         The IHashCodeProvider that supplies the hash codes for all keys in the 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="comparer" type="System.Collections.IComparer">
		///     <para>
		///         The IComparer to use to determine whether two keys are equal.
		///     </para>
		/// </param>
		public AffixRuleCollection(IDictionary dictionary, float loadFactor, IHashCodeProvider codeProvider, IComparer comparer)
		{
			innerHash = new Hashtable (dictionary, loadFactor, codeProvider, comparer);
		}

		/// <summary>
		///     Initializes a new instance of 'AffixRuleCollection'.
		/// </summary>
		/// <param name="capacity" type="int">
		///     <para>
		///         The approximate number of elements that the 'AffixRuleCollection' can initially contain. 
		///     </para>
		/// </param>
		/// <param name="loadFactor" type="float">
		///     <para>
		///         A number in the range from 0.1 through 1.0 indicating the maximum ratio of elements to buckets.
		///     </para>
		/// </param>
		/// <param name="codeProvider" type="System.Collections.IHashCodeProvider">
		///     <para>
		///         The IHashCodeProvider that supplies the hash codes for all keys in the 'AffixRuleCollection'.
		///     </para>
		/// </param>
		/// <param name="comparer" type="System.Collections.IComparer">
		///     <para>
		///         The IComparer to use to determine whether two keys are equal. 
		///     </para>
		/// </param>
		public AffixRuleCollection(int capacity, float loadFactor, IHashCodeProvider codeProvider, IComparer comparer)
		{
			innerHash = new Hashtable (capacity, loadFactor, codeProvider, comparer);
		}

		
		#endregion

		#region Implementation of IDictionary
		
		/// <summary>
		///     Returns an enumerator that can be used to iterate through the 'AffixRuleCollection'.
		/// </summary>
		public AffixRuleEnumerator GetEnumerator()
		{
			return new AffixRuleEnumerator(this);
		}
        
		System.Collections.IDictionaryEnumerator IDictionary.GetEnumerator()
		{
			return new AffixRuleEnumerator(this);
		}
		
		IEnumerator IEnumerable.GetEnumerator()
		{
			return GetEnumerator();
		}

		/// <summary>
		///     Removes the element with the specified key from the AffixRuleCollection.
		/// </summary>
		/// <param name="key" type="string">
		///     <para>
		///         The key of the element to remove
		///     </para>
		/// </param>
		public void Remove(string key)
		{
			innerHash.Remove (key);
		}
		void IDictionary.Remove(object key)
		{
			Remove ((string)key);
		}

		/// <summary>
		///     Determines whether the AffixRuleCollection contains an element with the specified key.
		/// </summary>
		/// <param name="key" type="string">
		///     <para>
		///         The key to locate in the AffixRuleCollection.
		///     </para>
		/// </param>
		/// <returns>
		///     true if the AffixRuleCollection contains an element with the key; otherwise, false.
		/// </returns>
		public bool Contains(string key)
		{
			return innerHash.Contains(key);
		}
		bool IDictionary.Contains(object key)
		{
			return Contains((string)key);
		}

		/// <summary>
		///     removes all elements from the AffixRuleCollection.
		/// </summary>
		public void Clear()
		{
			innerHash.Clear();		
		}

		/// <summary>
		///     adds an element with the provided key and value to the AffixRuleCollection.
		/// </summary>
		/// <param name="key" type="string">
		///     <para>
		///         The string Object to use as the key of the element to add.
		///     </para>
		/// </param>
		/// <param name="value" type="AffixRule">
		///     <para>
		///         The AffixRule Object to use as the value of the element to add.
		///     </para>
		/// </param>
		public void Add(string key, AffixRule value)
		{
			innerHash.Add (key, value);
		}
		void IDictionary.Add(object key, object value)
		{
			Add ((string)key, (AffixRule)value);
		}

		/// <summary>
		///     gets a value indicating whether the AffixRuleCollection is read-only.
		/// </summary>
		public bool IsReadOnly
		{
			get
			{
				return innerHash.IsReadOnly;
			}
		}

		/// <summary>
		///     Gets or sets the element with the specified key.
		/// </summary>
		/// <value>
		///     <para>
		///         The key of the element to get or set.
		///     </para>
		/// </value>
		public AffixRule this[string key]
		{
			get
			{
				return (AffixRule) innerHash[key];
			}
			set
			{
				innerHash[key] = value;
			}
		}
		object IDictionary.this[object key]
		{
			get
			{
				return this[(string)key];
			}
			set
			{
				this[(string)key] = (AffixRule)value;
			}
		}
        
		/// <summary>
		///     gets an ICollection containing the values in the AffixRuleCollection.
		/// </summary>
		public System.Collections.ICollection Values
		{
			get
			{
				return innerHash.Values;
			}
		}

		/// <summary>
		///     gets an ICollection containing the keys of the AffixRuleCollection.
		/// </summary>
		public System.Collections.ICollection Keys
		{
			get
			{
				return innerHash.Keys;
			}
		}

		/// <summary>
		///     gets a value indicating whether the AffixRuleCollection has a fixed size.
		/// </summary>
		public bool IsFixedSize
		{
			get
			{
				return innerHash.IsFixedSize;
			}
		}
		#endregion

		#region Implementation of ICollection

		/// <summary>
		///     copies the elements of the AffixRuleCollection to an Array, starting at a particular Array index.
		/// </summary>
		/// <param name="array" type="System.Array">
		///     <para>
		///         The one-dimensional Array that is the destination of the elements copied from AffixRuleCollection. The Array must have zero-based indexing. 
		///     </para>
		/// </param>
		/// <param name="index" type="int">
		///     <para>
		///         The zero-based index in array at which copying begins. 
		///     </para>
		/// </param>		
		public void CopyTo(System.Array array, int index)
		{
			innerHash.CopyTo (array, index);
		}

		/// <summary>
		///     Gets a value indicating whether access to the AffixRuleCollection is synchronized (thread-safe).
		/// </summary>
		public bool IsSynchronized
		{
			get
			{
				return innerHash.IsSynchronized;
			}
		}

		/// <summary>
		///     Gets the number of elements contained in the AffixRuleCollection.
		/// </summary>
		public int Count
		{
			get
			{
				return innerHash.Count;
			}
		}

		/// <summary>
		///     Gets an object that can be used to synchronize access to the AffixRuleCollection.
		/// </summary>
		public object SyncRoot
		{
			get
			{
				return innerHash.SyncRoot;
			}
		}
		#endregion

		#region Implementation of ICloneable
		
		/// <summary>
		///     Creates a new object that is a copy of the current instance.
		/// </summary>
		/// <returns>
		///     A new object that is a copy of this instance.
		/// </returns>
		public AffixRuleCollection Clone()
		{
			AffixRuleCollection clone = new AffixRuleCollection();
			clone.innerHash = (Hashtable) innerHash.Clone();
			
			return clone;
		}
		object ICloneable.Clone()
		{
			return Clone();
		}
		
		#endregion
		
		#region "HashTable Methods"
		
		/// <summary>
		///     Determines whether the AffixRuleCollection contains a specific key.
		/// </summary>
		/// <param name="key" type="string">
		///     <para>
		///         The key to locate in the AffixRuleCollection.
		///     </para>
		/// </param>
		/// <returns>
		///     true if the AffixRuleCollection contains an element with the specified key; otherwise, false.
		/// </returns>
		public bool ContainsKey (string key)
		{
			return innerHash.ContainsKey(key);
		}
		
		/// <summary>
		///     Determines whether the AffixRuleCollection contains a specific value.
		/// </summary>
		/// <param name="value" type="AffixRule">
		///     <para>
		///         The value to locate in the AffixRuleCollection. The value can be a null reference (Nothing in Visual Basic).
		///     </para>
		/// </param>
		/// <returns>
		///     true if the AffixRuleCollection contains an element with the specified value; otherwise, false.
		/// </returns>
		public bool ContainsValue (AffixRule value)
		{
			return innerHash.ContainsValue(value);
		}
		
		/// <summary>
		///     Returns a synchronized (thread-safe) wrapper for the AffixRuleCollection.
		/// </summary>
		/// <param name="nonSync" type="AffixRuleCollection">
		///     <para>
		///         The AffixRuleCollection to synchronize.
		///     </para>
		/// </param>
		public static AffixRuleCollection Synchronized(AffixRuleCollection nonSync)
		{
			AffixRuleCollection sync = new AffixRuleCollection();
			sync.innerHash = Hashtable.Synchronized(nonSync.innerHash);

			return sync;
		}
		
		#endregion

		internal Hashtable InnerHash
		{
			get
			{
				return innerHash;
			}
		}
	}
	
}

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

Vietdungiitb
Vietnam Maritime University
Vietnam Vietnam
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 10 Apr 2013
Article Copyright 2013 by Vietdungiitb
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid