[Mono-bugs] [Bug 432126] New: Error CS0122 for OdbcException.Message

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 3 11:22:41 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=432126


           Summary: Error CS0122 for OdbcException.Message
           Product: Mono: Compilers
           Version: unspecified
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Keywords: build
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: abatishchev at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I got an error CS0122: 'System.Data.Odbc.OdbcException.Message' is inaccessible
due to its protection level.
The same code in Visual Studio 2008 or VB.NET-analogue in VS or Monodevelop
occurs no error.
Class reference
http://www.go-mono.com/docs/index.aspx?link=P%3aSystem.Data.Odbc.OdbcException.Message
said:
public override string Message { get; }
MSDN
http://msdn.microsoft.com/en-us/library/system.data.odbc.odbcexception.message.aspx
the same :)

Here is code example:
using System.Data.Odbc;

namespace Test
{
  public class MyClass
  {
    void Foo()
    {
      try
      {
        //
      }
      catch(OdbcException ex)
      {
        if(ex.Message.Contains("foo"))
        {
          //
        }
      }
    }
  }
}

I'm using Debian(lenny), kernel 2.6.26-1, Gnome 2.22.3 and Mono 1.9.1 as debian
package from repositary


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list