ParseReader() публичный Метод

public ParseReader ( TextReader stream ) : object
stream TextReader
Результат object
Пример #1
0
		public override object CreateObjectFromReader (StreamReader reader, bool createNamescope)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ResourceBase = resourceBase,
			};

			return p.ParseReader (reader);
		}
Пример #2
0
		protected override void HydrateInternal (object value, Stream xaml, bool createNamescope, bool validateTemplates, bool import_default_xmlns)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ValidateTemplates = validateTemplates,
				HydrateObject = value,
				ResourceBase = resourceBase,
			};

			using (StreamReader reader = new StreamReader (xaml)) {
				object v = p.ParseReader (reader);
			}
		}