Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDbParameterCollection.cs')
-rw-r--r--mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDbParameterCollection.cs104
1 files changed, 52 insertions, 52 deletions
diff --git a/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDbParameterCollection.cs b/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDbParameterCollection.cs
index c514cf66330..3e4c222d0c5 100644
--- a/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDbParameterCollection.cs
+++ b/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDbParameterCollection.cs
@@ -1,5 +1,5 @@
-//
-// System.Data.Common.AbstractDbParameterCollection
+//
+// System.Data.Common.AbstractDbParameterCollection
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
@@ -27,33 +27,33 @@
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Data.Common;
-using System.Collections;
-
-namespace System.Data.ProviderBase
-{
- public abstract class AbstractDbParameterCollection : DbParameterCollection
- {
- #region Fields
-
- readonly AbstractDbCommand _parent;
- readonly ArrayList _list = new ArrayList();
-
- #endregion // Fields
-
- #region Constructors
-
- public AbstractDbParameterCollection(DbCommand parent)
- {
- _parent = (AbstractDbCommand)parent;
- }
-
- #endregion // Constructors
-
+//
+
+
+using System;
+using System.Data.Common;
+using System.Collections;
+
+namespace System.Data.ProviderBase
+{
+ public abstract class AbstractDbParameterCollection : DbParameterCollection
+ {
+ #region Fields
+
+ readonly AbstractDbCommand _parent;
+ readonly ArrayList _list = new ArrayList();
+
+ #endregion // Fields
+
+ #region Constructors
+
+ public AbstractDbParameterCollection(DbCommand parent)
+ {
+ _parent = (AbstractDbCommand)parent;
+ }
+
+ #endregion // Constructors
+
#region Properties
public override int Count {
@@ -78,10 +78,10 @@ namespace System.Data.ProviderBase
get { return _list.SyncRoot; }
}
- #endregion // Properties
-
- #region Methods
-
+ #endregion // Properties
+
+ #region Methods
+
public override int Add (object value) {
Validate (-1, value);
OnSchemaChanging();
@@ -134,13 +134,13 @@ namespace System.Data.ProviderBase
return (DbParameter) _list [index];
}
-#if NET_2_0
- protected override DbParameter GetParameter (string parameterName) {
- return GetParameter (IndexOf (parameterName));
- }
-
- protected override void SetParameter (string parameterName, DbParameter value) {
- SetParameter (IndexOf (parameterName), value);
+#if NET_2_0
+ protected override DbParameter GetParameter (string parameterName) {
+ return GetParameter (IndexOf (parameterName));
+ }
+
+ protected override void SetParameter (string parameterName, DbParameter value) {
+ SetParameter (IndexOf (parameterName), value);
}
#endif
@@ -245,15 +245,15 @@ namespace System.Data.ProviderBase
((AbstractDbParameter)value).Parent = this;
_list [index] = value;
- }
-
- protected internal void OnSchemaChanging()
- {
- if (_parent != null) {
- _parent.OnSchemaChanging();
- }
- }
-
- #endregion // Methods
- }
-}
+ }
+
+ protected internal void OnSchemaChanging()
+ {
+ if (_parent != null) {
+ _parent.OnSchemaChanging();
+ }
+ }
+
+ #endregion // Methods
+ }
+}