* DataRelationCollection.cs (BinarySerialize): New. Carved out of ...
[mono.git] / mcs / class / System.Data / System.Data.Odbc / OdbcPermission.cs
index f909efcdcc2620db8a089b221330844edd8bde3f..da7db7e807fe6332206b68df5271edf7ce20753e 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System.Collections;
 using System.Data.Common;
 using System.Security;
 using System.Security.Permissions;
 
-namespace System.Data.Odbc {
-
+namespace System.Data.Odbc
+{
        [Serializable]
-       public sealed class OdbcPermission : DBDataPermission {
-
+       public sealed class OdbcPermission : DBDataPermission
+       {
                #region Constructors
 
 #if NET_1_1
@@ -75,9 +74,6 @@ namespace System.Data.Odbc {
 
                #endregion
 
-               #region Properties
-               #endregion
-
                #region Methods
 
                public override IPermission Copy ()
@@ -85,20 +81,11 @@ namespace System.Data.Odbc {
                        return new OdbcPermission (this);
                }
 
-#if NET_2_0
-               [MonoTODO ("unimplemented (and unused in Mono)")]
-               protected override void AddConnectionString (string connectionString, string restrictions, 
-                       KeyRestrictionBehavior behavior, Hashtable synonyms, bool useFirstKeyValue)
-               {
-                       throw new NotImplementedException ();
-               }
-#else
-               // no more part of Fx 2.0 - useless ? or replaced with AddConnectionString ?
                public override void Add (string connectionString, string restrictions, KeyRestrictionBehavior behavior)
                {
                        base.Add (connectionString, restrictions, behavior);
                }
-#endif
+
                #endregion
        }
 }