public XmlReaderBodyWriter(XmlDictionaryReader reader, EnvelopeVersion version) : base(false) { this.reader = reader; if (reader.MoveToContent() != XmlNodeType.Element) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(System.ServiceModel.SR.GetString("InvalidReaderPositionOnCreateMessage"), "reader")); } this.isFault = Message.IsFaultStartElement(reader, version); }