diff options
author | Umadevi S <uma@mono-cvs.ximian.com> | 2004-03-17 08:02:06 +0300 |
---|---|---|
committer | Umadevi S <uma@mono-cvs.ximian.com> | 2004-03-17 08:02:06 +0300 |
commit | 9971078d9d7fe6cfd80c39371150e06fcc5cde3d (patch) | |
tree | 3b4290a8c7fb35ffa1a7c46469c6da7822cbd21b /mcs/class/System.Data/System.Data.Odbc/OdbcError.cs | |
parent | 4ef15327470ea4545d309f90d821b9e5901dd15d (diff) |
2004-03-17 Umadevi S (sumadevi@novell.com)
* OdbcError.cs - implemented ToString
svn path=/trunk/mcs/; revision=24209
Diffstat (limited to 'mcs/class/System.Data/System.Data.Odbc/OdbcError.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.Odbc/OdbcError.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mcs/class/System.Data/System.Data.Odbc/OdbcError.cs b/mcs/class/System.Data/System.Data.Odbc/OdbcError.cs index 0b0465d0b44..00186c226c3 100644 --- a/mcs/class/System.Data/System.Data.Odbc/OdbcError.cs +++ b/mcs/class/System.Data/System.Data.Odbc/OdbcError.cs @@ -14,7 +14,7 @@ using System.Data.Common; namespace System.Data.Odbc
{
- public class OdbcError
+ public sealed class OdbcError
{
string message,source,sqlstate;
int nativeerror;
@@ -113,6 +113,16 @@ namespace System.Data.Odbc }
#endregion // Properties + + #region methods + + public override string ToString () + { + return Message; + } + + #endregion }
-}
\ No newline at end of file + +} |