Inheritance: System.IO.Stream
 internal XmlReader ToXmlReader()
 {
     XmlReader reader;
     SqlCachedStream stream = new SqlCachedStream(this);
     XmlReaderSettings settings = new XmlReaderSettings {
         ConformanceLevel = ConformanceLevel.Fragment
     };
     MethodInfo method = typeof(XmlReader).GetMethod("CreateSqlReader", BindingFlags.NonPublic | BindingFlags.Static);
     object[] objArray = new object[3];
     objArray[0] = stream;
     objArray[1] = settings;
     object[] parameters = objArray;
     new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert();
     try
     {
         reader = (XmlReader) method.Invoke(null, parameters);
     }
     finally
     {
         CodeAccessPermission.RevertAssert();
     }
     return reader;
 }
 public override string ToString()
 {
     if (this.IsNull)
     {
         throw new SqlNullValueException();
     }
     if (this._cachedBytes.Count == 0)
     {
         return string.Empty;
     }
     SqlCachedStream stream = new SqlCachedStream(this);
     SqlXml xml = new SqlXml(stream);
     return xml.Value;
 }