示例#1
0
 public static PropertyTree FromStreamContext(StreamContext streamContext, Encoding encoding = null)
 {
     if (streamContext == null)
     {
         throw new ArgumentNullException("streamContext"); // $NON-NLS-1
     }
     using (PropertyTreeReader reader = PropertyTreeReader.CreateXml(streamContext, encoding, null)) {
         return(reader.ReadPropertyTree());
     }
 }