[Quantproject-developers] QuantProject/b1_ADT/Collections Set.cs, 1.1, 1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-07-20 20:40:38
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Collections In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8751/b1_ADT/Collections Modified Files: Set.cs Log Message: The public method Clear() has been added Index: Set.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Collections/Set.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Set.cs 13 Jul 2007 09:59:36 -0000 1.1 --- Set.cs 20 Jul 2008 20:40:22 -0000 1.2 *************** *** 56,59 **** --- 56,67 ---- return this.elements.ContainsKey( element ); } + + /// <summary> + /// removes all elements in the set + /// </summary> + public void Clear() + { + this.elements.Clear(); + } } } |