[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../msfinal.pub")]
-#if NET_2_0
- [assembly: AssemblyTitle ("cscompmgd.dll")]
- [assembly: AssemblyDefaultAlias ("cscompmgd.dll")]
- [assembly: AssemblyDescription ("cscompmgd.dll")]
- [assembly: AssemblyCompany (Consts.MonoCompany)]
- [assembly: AssemblyProduct (Consts.MonoProduct)]
- [assembly: AssemblyCopyright (Consts.MonoCopyright)]
- [assembly: SatelliteContractVersion (Consts.VsVersion)]
- [assembly: AssemblyInformationalVersion (Consts.VsFileVersion)]
- [assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
- [assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
- [assembly: NeutralResourcesLanguage ("en-US")]
- [assembly: ReliabilityContract (Consistency.MayCorruptProcess, Cer.None)]
-#elif (NET_1_1 || NET_1_0)
- [assembly: AssemblyDescription ("Managed interface for C# compiler")]
- [assembly: AssemblyTitle ("Managed C# Compiler")]
-#endif
+[assembly: AssemblyTitle ("cscompmgd.dll")]
+[assembly: AssemblyDefaultAlias ("cscompmgd.dll")]
+[assembly: AssemblyDescription ("cscompmgd.dll")]
+[assembly: AssemblyCompany (Consts.MonoCompany)]
+[assembly: AssemblyProduct (Consts.MonoProduct)]
+[assembly: AssemblyCopyright (Consts.MonoCopyright)]
+[assembly: SatelliteContractVersion (Consts.VsVersion)]
+[assembly: AssemblyInformationalVersion (Consts.VsFileVersion)]
+[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
+[assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
+[assembly: NeutralResourcesLanguage ("en-US")]
+[assembly: ReliabilityContract (Consistency.MayCorruptProcess, Cer.None)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../msfinal.pub")]
-#if NET_2_0
- [assembly: AssemblyTitle ("CustomMarshalers.dll")]
- [assembly: AssemblyDescription ("CustomMarshalers.dll")]
- [assembly: AssemblyDefaultAlias ("CustomMarshalers.dll")]
-
- [assembly: AssemblyCompany (Consts.MonoCompany)]
- [assembly: AssemblyProduct (Consts.MonoProduct)]
- [assembly: AssemblyCopyright (Consts.MonoCopyright)]
- [assembly: AssemblyFileVersion (Consts.FxFileVersion)]
- [assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
-
- [assembly: CLSCompliant (true)]
- [assembly: ComVisible (false)]
-#elif NET_1_1
-#elif NET_1_0
-#endif
+[assembly: AssemblyTitle ("CustomMarshalers.dll")]
+[assembly: AssemblyDescription ("CustomMarshalers.dll")]
+[assembly: AssemblyDefaultAlias ("CustomMarshalers.dll")]
+
+[assembly: AssemblyCompany (Consts.MonoCompany)]
+[assembly: AssemblyProduct (Consts.MonoProduct)]
+[assembly: AssemblyCopyright (Consts.MonoCopyright)]
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
+
+[assembly: CLSCompliant (true)]
+[assembly: ComVisible (false)]
\r
#region Read\r
\r
-#if !NET_1_0\r
public bool HasRows\r
{\r
get\r
return hasRows;\r
}\r
}\r
-#endif\r
\r
public bool Read()\r
{\r
// TODO: need better implementation for big BLOBs\r
\r
byte[] sourceArray = (byte[])this[col];\r
-#if NET_1_0\r
- if(buffer == null)\r
- {\r
- Array.Copy(sourceArray, (int)fieldOffset, buffer, bufferOffset, length);\r
- }\r
- return sourceArray.Length;\r
-#else\r
if(buffer == null)\r
{\r
Array.Copy(sourceArray, fieldOffset, buffer, bufferOffset, length);\r
}\r
return sourceArray.LongLength;\r
-#endif\r
}\r
#endregion\r
\r
// Console.WriteLine (event_log);
Assert.AreEqual (
-#if NET_2_0
"0: PositionChanged (to -1)\n1: ItemChanged (index = -1)\n2: PositionChanged (to -1)\n3: CurrentChanged\n4: CurrentItemChanged\n5: ItemChanged (index = -1)\n"
-#else // NET_1_0
- "0: PositionChanged (to -1)\n1: ItemChanged (index = -1)\n2: ItemChanged (index = -1)\n"
-#endif
, event_log, "2");
Assert.AreEqual (0, cm.Count, "3");
Assert.AreEqual (
-#if NET_2_0
#if WITH_BINDINGS
"0: CurrentChanged\n1: CurrentItemChanged\n2: PositionChanged (to 0)\n3: ItemChanged (index = -1)\n4: Binding.Format\n"
#else
"0: CurrentChanged\n1: CurrentItemChanged\n2: PositionChanged (to 0)\n3: ItemChanged (index = -1)\n"
-#endif
-#else // NET_1_0
-#if WITH_BINDINGS
- "0: CurrentChanged\n1: PositionChanged (to 0)\n2: ItemChanged (index = -1)\n3: Binding.Format\n"
-#else
- "0: CurrentChanged\n1: PositionChanged (to 0)\n2: ItemChanged (index = -1)\n"
-#endif
#endif
, event_log, "2");
}
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile("../mono.pub")]
-#if NET_2_0
- [assembly: AssemblyFileVersion (Consts.FxFileVersion)]
- [assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
- [assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
- [assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
-#elif NET_1_1
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#elif NET_1_0
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#endif
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
+[assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
+[assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile("../mono.pub")]
-#if NET_2_0
- [assembly: AssemblyFileVersion (Consts.FxFileVersion)]
- [assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
- [assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
- [assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
-#elif NET_1_1
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#elif NET_1_0
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#endif
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
+[assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
+[assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
// TODO - we should check for CRITICAL but unknown extensions
// X509ChainStatusFlags.InvalidExtension
-#if (!NET_1_0 && !INSIDE_CORLIB)
+#if !INSIDE_CORLIB
if (ServicePointManager.CheckCertificateRevocationList) {
// TODO - check revocation (CRL, OCSP ...)
// X509ChainStatusFlags.RevocationStatusUnknown
}
[OdbcDescriptionAttribute ("Time to wait for command to execute")]
-#if NET_1_0 || ONLY_1_1
- [DefaultValue (DEFAULT_COMMAND_TIMEOUT)]
-#endif
- public
-#if NET_2_0
- override
-#endif
+ public override
int CommandTimeout {
get { return timeout; }
set {
if (value < 0)
-#if NET_2_0
throw new ArgumentException ("The property value assigned is less than 0.",
"CommandTimeout");
-#else
- throw new ArgumentException ("The property value assigned is less than 0.");
-#endif
timeout = value;
}
}
namespace System.Data.Odbc
{
-#if NET_1_0
- [Serializable]
-#endif
public delegate void OdbcInfoMessageEventHandler (object sender, OdbcInfoMessageEventArgs e);
}
[DataCategory ("Data")]
[DefaultValue ("")]
-#if NET_1_0 || ONLY_1_1
- [DataSysDescriptionAttribute ("Information used to connect to a Data Source.")]
-#endif
[EditorAttribute ("Microsoft.VSDesigner.Data.ADO.Design.OleDbConnectionStringEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
[RecommendedAsConfigurable (true)]
[RefreshPropertiesAttribute (RefreshProperties.All)]
- public
-#if NET_2_0
- override
-#endif
- string ConnectionString {
+ public override string ConnectionString {
get {
if (connectionString == null)
return string.Empty;
}
[DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
-#if !NET_2_0
- [DataSysDescriptionAttribute ("Current connection timeout value, 'Connect Timeout=X' in the ConnectionString.")]
-#endif
- public
-#if NET_2_0
- override
-#endif
- int ConnectionTimeout {
+ public override int ConnectionTimeout {
get {
return connectionTimeout;
}
}
[DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
-#if !NET_2_0
- [DataSysDescriptionAttribute ("Current data source catalog value, 'Initial Catalog=X' in the connection string.")]
-#endif
- public
-#if NET_2_0
- override
-#endif
+ public override
string Database {
get {
if (gdaConnection != IntPtr.Zero
}
}
-#if NET_2_0
[BrowsableAttribute (true)]
-#else
- [DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
- [DataSysDescriptionAttribute ("Current data source, 'Data Source=X' in the connection string.")]
-#endif
- public
-#if NET_2_0
- override
-#endif
- string DataSource {
+ public override string DataSource {
get {
if (gdaConnection != IntPtr.Zero
&& libgda.gda_connection_is_open (gdaConnection)) {
}
[DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
-#if NET_2_0
[BrowsableAttribute (true)]
-#else
- [DataSysDescriptionAttribute ("Current OLE DB provider progid, 'Provider=X' in the connection string.")]
-#endif
public string Provider {
get {
if (gdaConnection != IntPtr.Zero
}
}
-#if !NET_2_0
- [DataSysDescriptionAttribute ("Version of the product accessed by the OLE DB Provider.")]
- [DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
- [BrowsableAttribute (false)]
-#endif
- public
-#if NET_2_0
- override
-#endif
- string ServerVersion {
+ public override string ServerVersion {
get {
if (State == ConnectionState.Closed)
throw ExceptionHelper.ConnectionClosed ();
}
[DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
-#if !NET_2_0
- [DataSysDescriptionAttribute ("The ConnectionState indicating whether the connection is open or closed.")]
-#endif
[BrowsableAttribute (false)]
- public
-#if NET_2_0
- override
-#endif
- ConnectionState State {
+ public override ConnectionState State {
get {
if (gdaConnection != IntPtr.Zero) {
if (libgda.gda_connection_is_open (gdaConnection))
return new OleDbTransaction (this, isolationLevel);
}
-#if NET_2_0
protected override DbTransaction BeginDbTransaction(IsolationLevel isolationLevel)
{
return BeginTransaction (isolationLevel);
{
return CreateCommand ();
}
-#else
- IDbTransaction IDbConnection.BeginTransaction ()
- {
- return BeginTransaction ();
- }
- IDbTransaction IDbConnection.BeginTransaction (IsolationLevel isolationLevel)
- {
- return BeginTransaction (isolationLevel);
- }
-
- IDbCommand IDbConnection.CreateCommand ()
- {
- return CreateCommand ();
- }
-#endif
-
- public
-#if NET_2_0
- override
-#endif
- void ChangeDatabase (string value)
+ public override void ChangeDatabase (string value)
{
if (State != ConnectionState.Open)
throw new InvalidOperationException ();
throw new OleDbException (this);
}
- public
-#if NET_2_0
- override
-#endif
- void Close ()
+ public override void Close ()
{
if (State == ConnectionState.Open) {
libgda.gda_connection_close (gdaConnection);
}
}
-#if NET_1_0 || ONLY_1_1
- override
-#else
- new
-#endif
- public string Message {
+ new public string Message {
get {
GdaList glist;
IntPtr errors;
}
}
-#if NET_1_0 || ONLY_1_1
- override
-#else
- new
-#endif
- public string Source {
+ new public string Source {
get {
GdaList glist;
IntPtr errors;
#region Properties
-#if NET_1_0 || ONLY_1_1
- [DataSysDescription ("Information used to connect to a DataSource, such as 'Data Source=x;Initial Catalog=x;Integrated Security=SSPI'.")]
-#endif
[DefaultValue ("")]
[EditorAttribute ("Microsoft.VSDesigner.Data.SQL.Design.SqlConnectionStringEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
[RecommendedAsConfigurable (true)]
[RefreshProperties (RefreshProperties.All)]
- public
-#if NET_2_0
- override
-#endif // NET_2_0
- string ConnectionString {
+ public override string ConnectionString {
get {
if (connectionString == null)
return string.Empty;
#region Properties Net 2
-#if NET_1_0
- [DataSysDescription ("Enable Asynchronous processing, 'Asynchrouse Processing=true/false' in the ConnectionString.")]
-#endif
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
internal bool AsyncProcessing {
get { return async; }
[assembly: AssemblyKeyFile ("../msfinal.pub")]
#endif
-#if NET_2_0
- [assembly: AssemblyFileVersion (Consts.FxFileVersion)]
- [assembly: AllowPartiallyTrustedCallers]
- [assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
- [assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
- [assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
-#elif NET_1_1
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#elif NET_1_0
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#endif
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: AllowPartiallyTrustedCallers]
+[assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
+[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
+[assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile("../msfinal.pub")]
-#if NET_2_0
- [assembly: AssemblyFileVersion (Consts.FxFileVersion)]
- [assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
- [assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
-#elif NET_1_1
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#elif NET_1_0
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#endif
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
+[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]