public static XmlDictionaryWriter CreateDictionaryWriter(XmlWriter writer) { if (writer == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); } XmlDictionaryWriter writer2 = writer as XmlDictionaryWriter; if (writer2 == null) { writer2 = new XmlWrappedWriter(writer); } return writer2; }
public static XmlDictionaryWriter CreateDictionaryWriter(XmlWriter writer) { ArgumentNullException.ThrowIfNull(writer); XmlDictionaryWriter?dictionaryWriter = writer as XmlDictionaryWriter; if (dictionaryWriter == null) { dictionaryWriter = new XmlWrappedWriter(writer); } return(dictionaryWriter); }
public static XmlDictionaryWriter CreateDictionaryWriter(XmlWriter writer) { if (writer == null) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); XmlDictionaryWriter dictionaryWriter = writer as XmlDictionaryWriter; if (dictionaryWriter == null) { dictionaryWriter = new XmlWrappedWriter(writer); } return dictionaryWriter; }
public static XmlDictionaryWriter CreateDictionaryWriter(XmlWriter writer) { if (writer == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); } XmlDictionaryWriter writer2 = writer as XmlDictionaryWriter; if (writer2 == null) { writer2 = new XmlWrappedWriter(writer); } return(writer2); }
static public XmlDictionaryWriter CreateDictionaryWriter(XmlWriter writer) { if (writer == null) { throw /*System.Runtime.Serialization.*/ DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); } XmlDictionaryWriter dictionaryWriter = writer as XmlDictionaryWriter; if (dictionaryWriter == null) { dictionaryWriter = new XmlWrappedWriter(writer); } return(dictionaryWriter); }