internal XmlReader ToXmlReader(bool async = false) { // Dev11 Bug #315513: Exception type breaking change from 4.0 RTM when calling GetChars on null xml // We need to wrap all exceptions inside a TargetInvocationException to simulate calling CreateSqlReader via MethodInfo.Invoke return(SqlTypeWorkarounds.SqlXmlCreateSqlXmlReader(this, closeInput: true, async: async)); }
internal XmlReader ToXmlReader(bool async = false) { return(SqlTypeWorkarounds.SqlXmlCreateSqlXmlReader(this, closeInput: true, async: async)); }
internal XmlReader ToXmlReader() { return(SqlTypeWorkarounds.SqlXmlCreateSqlXmlReader(ToStream(), closeInput: false)); }