Browse Source

Small change in Collections.cs

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@997 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Peter Forstmeier 20 years ago
parent
commit
2455f778f8
  1. 45
      src/AddIns/Misc/SharpQuery/Src/Collections.cs

45
src/AddIns/Misc/SharpQuery/Src/Collections.cs

@ -1,10 +1,3 @@ @@ -1,10 +1,3 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Luc Morin" email=""/>
// <version>$Revision$</version>
// </file>
using System;
using System.Collections.Generic;
using SharpQuery.SchemaClass;
@ -22,8 +15,42 @@ namespace SharpQuery.Collections @@ -22,8 +15,42 @@ namespace SharpQuery.Collections
}
[Serializable()]
public class SharpQueryParameterCollection : List<SharpQueryParameter>
{
public class SharpQueryParameterCollection : List<SharpQueryParameter>{
public SharpQueryParameterCollection () {
}
/// <summary>
/// <para>
/// Initializes a new instance of <see cref='.SharpQueryParameterCollection'/> based on another <see cref='.SharpQueryParameterCollection'/>.
/// </para>
/// </summary>
/// <param name='value'>
/// A <see cref='.SharpQueryParameterCollection'/> from which the contents are copied
/// </param>
public SharpQueryParameterCollection(SharpQueryParameterCollection value) {
this.AddRange(value);
}
/// <summary>
/// <para>
/// Initializes a new instance of <see cref='.SharpQueryParameterCollection'/> containing any array of <see cref='.SharpQueryParameter'/> objects.
/// </para>
/// </summary>
/// <param name='value'>
/// A array of <see cref='.SharpQueryParameter'/> objects with which to intialize the collection
/// </param>
public SharpQueryParameterCollection(SharpQueryParameter[] value) {
this.AddRange(value);
}
public SharpQuerySchemaClassCollection ToBaseSchemaCollection(){
SharpQuerySchemaClassCollection returnValues = new SharpQuerySchemaClassCollection();
foreach( SharpQueryParameter par in this ){
returnValues.Add( par );
}
return returnValues;
}
}
[Serializable()]

Loading…
Cancel
Save