ParseFile() public method

public ParseFile ( string file ) : object
file string
return object
示例#1
0
		public override object CreateObjectFromFile (string path, bool createNamescope)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = createNamescope,
				ResourceBase = resourceBase,
			};

			return p.ParseFile (path);
		}
示例#2
0
文件: XamlParser.cs 项目: dfr0/moon
		public static Value CreateFromFile (string file, bool create_namescope, bool validate_templates)
		{
			XamlParser p = new XamlParser () {
				CreateNameScope = create_namescope,
				ValidateTemplates = validate_templates,
			};

			object v = p.ParseFile (file);

			return ObjectToValue (v);
		}