internal static GlobalDataList GatherDataList(string xaml) { var globalDataList = new GlobalDataList(); Action currentAction = new RootAction(globalDataList); var rootAction = currentAction; int index = 0; for (; index < xaml.Length; index++) { var c = xaml[index]; if (currentAction == rootAction && '/' == c) { break; } else { currentAction = currentAction.DealChar(c); } } for (index++; index < xaml.Length; index++) { globalDataList.LongStrings += xaml[index]; } foreach (var op in globalDataList.PreLoadOperations) { op.Do(); } return(globalDataList); }
internal static GlobalDataList GatherDataList(string xaml) { var globalDataList = new GlobalDataList(); Action currentAction = new RootAction(globalDataList); foreach (char c in xaml) { currentAction = currentAction.DealChar(c); } foreach (var op in globalDataList.PreLoadOperations) { op.Do(); } return(globalDataList); }