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

public ParseText ( string propertySheetText, string originalFilename ) : void
propertySheetText string
originalFilename string
Результат void
Пример #1
0
        public override void ImportText(string propertySheetText, string originalFilename)
        {
            if (Root._imports.Any(each => each.FullPath.Equals(originalFilename, StringComparison.CurrentCulture)))
            {
                return;
            }

            var importedSheet = new RootPropertySheet(this);

            importedSheet.ParseText(propertySheetText, originalFilename);
            _imports.Add(importedSheet);
            AddChildRoutes(importedSheet.Routes);
            _view.InitializeAtRootLevel(importedSheet);
        }
Пример #2
0
        public override void ImportText(string propertySheetText, string originalFilename)
        {
            if(Root._imports.Any(each => each.FullPath.Equals(originalFilename, StringComparison.CurrentCulture))) {
                return;
            }

            var importedSheet = new RootPropertySheet(this);
            importedSheet.ParseText(propertySheetText, originalFilename);
            _imports.Add(importedSheet);
            AddChildRoutes(importedSheet.Routes);
            _view.InitializeAtRootLevel(importedSheet);
        }