Example #1
0
 public XmlSchemaSet this[EnhancedPresenceSchema id]
 {
     get
     {
         return(this.schemas[(int)id]);
     }
     private set
     {
         this.schemas[(int)id] = value;
     }
 }
Example #2
0
        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,
            }));
        }
Example #3
0
 public XmlSchemaSet this[EnhancedPresenceSchema id]
 {
     get
     {
         return this.schemas[(int)id];
     }
     private set
     {
         this.schemas[(int)id] = value;
     }
 }
Example #4
0
		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, });
		}