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();
+ }
}
}
|