diff Pml/Elements/Collection.cs @ 1:28dc7d535036

Small improvements, introduced PacketStream
author Ivo Smits <Ivo@UCIS.nl>
date Mon, 07 Jan 2013 16:43:28 +0100
parents 3ab940a0c7a0
children 8fe322656807
line wrap: on
line diff
--- a/Pml/Elements/Collection.cs	Tue Sep 11 16:28:53 2012 +0200
+++ b/Pml/Elements/Collection.cs	Mon Jan 07 16:43:28 2013 +0100
@@ -6,13 +6,16 @@
 	public class PmlCollection : PmlElement, ICollection<PmlElement> {
 			private List<PmlElement> pItems = new List<PmlElement>();
 
-			public PmlCollection() { 			}
+			public PmlCollection() { }
 			public PmlCollection(params PmlElement[] Elements) {
 				pItems.AddRange(Elements);
 			}
 			public PmlCollection(IEnumerable<PmlElement> Elements) {
 				pItems.AddRange(Elements);
 			}
+			public PmlCollection(params String[] Elements) {
+				foreach (String s in Elements) pItems.Add(s);
+			}
 
 			public PmlElement Add(PmlElement Element) {
 				pItems.Add(Element);