public XmlSchemaSet this[EnhancedPresenceSchema id] { get { return(this.schemas[(int)id]); } private set { this.schemas[(int)id] = value; } }
private XmlReader CreateXmlReader(ArraySegment <byte> content, EnhancedPresenceSchema schemaId) { MemoryStream memoryStream = new MemoryStream(content.Array, content.Offset, content.Count); StreamReader streamReader = new StreamReader(memoryStream, System.Text.Encoding.UTF8); return(XmlReader.Create(streamReader, new XmlReaderSettings() { ValidationType = ValidationType.None, })); }
public XmlSchemaSet this[EnhancedPresenceSchema id] { get { return this.schemas[(int)id]; } private set { this.schemas[(int)id] = value; } }
private XmlReader CreateXmlReader(ArraySegment<byte> content, EnhancedPresenceSchema schemaId) { MemoryStream memoryStream = new MemoryStream(content.Array, content.Offset, content.Count); StreamReader streamReader = new StreamReader(memoryStream, System.Text.Encoding.UTF8); return XmlReader.Create(streamReader, new XmlReaderSettings() { ValidationType = ValidationType.None, }); }