/// <summary></summary> protected virtual bool CheckClassAndLibraryNames(IRoot root) { ClassTable.Clear(); LibraryTable.Clear(); bool IsClassNamesValid = CheckClassNames(root); bool IsLibraryNamesValid = CheckLibraryNames(root); if (!IsClassNamesValid || !IsLibraryNamesValid) { return(false); } if (!InitializeLibraries(root)) { return(false); } if (!CheckLibrariesConsistency(root)) { return(false); } if (!CheckClassesConsistency(root)) { return(false); } Debug.Assert(ErrorList.IsEmpty); return(true); }