4 // Part of the Mono class libraries at
5 // mcs/class/System.Data.OracleClient/System.Data.OracleClient
7 // Assembly: System.Data.OracleClient.dll
8 // Namespace: System.Data.OracleClient
10 // Author: Tim Coleman <tim@timcoleman.com>
12 // Copyright (C) Tim Coleman, 2003
14 // Licensed under the MIT/X11 License.
18 using System.Data.SqlTypes;
20 namespace System.Data.OracleClient {
21 public struct OracleString : IComparable, INullable
28 public static readonly OracleString Empty = new OracleString (String.Empty);
29 public static readonly OracleString Null = new OracleString ();
35 public OracleString (string s)
41 #endregion // Constructors
46 get { return !notNull; }
53 #endregion // Properties
57 public int CompareTo (object value)
61 else if (!(value is OracleString))
62 throw new ArgumentException ("Value is not a System.Data.OracleClient.OracleString");
63 else if (((OracleString) value).IsNull)
66 return this.value.CompareTo (((OracleString) value).Value);