public static T ReadPropertyTree <T>(this StreamContext streamContext, Type type, Encoding encoding = null, PropertyTreeReaderSettings settings = null) { using (var reader = PropertyTreeReader.Create(streamContext, encoding, settings)) { reader.Read(); return(reader.Bind <T>()); } }
public override object Load(StreamContext inputSource, Type instanceType) { if (inputSource == null) { throw new ArgumentNullException("inputSource"); } var ptx = PropertyTreeReader.Create(inputSource); return(ptx.Bind(instanceType)); }