2004-04-22 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.SqlTypes / SqlBytes.cs
1 //
2 // System.Data.SqlTypes.SqlBytes
3 //
4 // Author:
5 //   Tim Coleman <tim@timcoleman.com>
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
9
10 #if NET_2_0
11
12 using System;
13 using System.Globalization;
14 using System.IO;
15 using System.Xml;
16 using System.Xml.Schema;
17 using System.Xml.Serialization;
18
19 namespace System.Data.SqlTypes
20 {
21         [MonoTODO]
22         public sealed class SqlBytes : INullable, IXmlSerializable
23         {
24                 #region Fields
25
26                 bool notNull;
27
28                 #endregion
29
30                 #region Constructors
31
32                 [MonoTODO]
33                 public SqlBytes (byte[] buffer)
34                 {
35                         notNull = true;
36                 }
37
38                 [MonoTODO]
39                 public SqlBytes (SqlBinary value)
40                         : this (value.Value)
41                 {
42                 }
43
44                 [MonoTODO]
45                 public SqlBytes (Stream s)
46                 {
47                         notNull = true;
48                 }
49
50                 [MonoTODO]
51                 public SqlBytes (IntPtr buffer, long length)
52                 {
53                         notNull = true;
54                 }
55
56                 #endregion
57
58                 #region Properties
59
60                 public bool IsNull {
61                         get { return !notNull; }
62                 }
63
64                 #endregion
65
66                 #region Methods
67
68                 [MonoTODO]
69                 XmlSchema IXmlSerializable.GetSchema ()
70                 {
71                         throw new NotImplementedException ();
72                 }
73                                                                                 
74                 [MonoTODO]
75                 void IXmlSerializable.ReadXml (XmlReader reader)
76                 {
77                         throw new NotImplementedException ();
78                 }
79                                                                                 
80                 [MonoTODO]
81                 void IXmlSerializable.WriteXml (XmlWriter writer)
82                 {
83                         throw new NotImplementedException ();
84                 }
85
86                 #endregion
87         }
88 }
89
90 #endif