using System.Data;
using System.Collections;
using System.ComponentModel;
-using Npgsql.Design;
using NpgsqlTypes;
+#if WITHDESIGN
+using Npgsql.Design;
+#endif
namespace Npgsql
{
/// as well as their respective mappings to columns in a <see cref="System.Data.DataSet">DataSet</see>.
/// This class cannot be inherited.
/// </summary>
+
+ #if WITHDESIGN
[ListBindable(false)]
- // [Editor(typeof(NpgsqlParametersEditor), typeof(System.ComponentModel.Design.CollectionEditor))]
[Editor(typeof(NpgsqlParametersEditor), typeof(System.Drawing.Design.UITypeEditor))]
+ #endif
+
public sealed class NpgsqlParameterCollection : MarshalByRefObject, IDataParameterCollection
{
private ArrayList InternalList = new ArrayList();
/// </summary>
/// <param name="parameterName">The name of the <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> to retrieve.</param>
/// <value>The <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> with the specified name, or a null reference if the parameter is not found.</value>
+
+ #if WITHDESIGN
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
+ #endif
+
public NpgsqlParameter this[string parameterName] {
get
{
/// </summary>
/// <param name="index">The zero-based index of the <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> to retrieve.</param>
/// <value>The <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> at the specified index.</value>
+
+ #if WITHDESIGN
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
+ #endif
+
public NpgsqlParameter this[int index] {
get
{
/// Gets the number of <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> objects in the collection.
/// </summary>
/// <value>The number of <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> objects in the collection.</value>
+
+ #if WITHDESIGN
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
+ #endif
+
public int Count {
get
{