public void Check() { if (this == FileModel.Ignore) { return; } if (OutOfDate) { OutOfDate = false; if (File.Exists(FileName) && (CachedModel || LastWriteTime < System.IO.File.GetLastWriteTime(FileName))) { try { ASFileParser.ParseFile(this); } catch { OutOfDate = false; Imports.Clear(); Classes.Clear(); Members.Clear(); PrivateSectionIndex = 0; Package = ""; } } } }
public void Check() { if (this == Ignore) { return; } if (OutOfDate) { OutOfDate = false; if (FileName != "" && File.Exists(FileName) && LastWriteTime < File.GetLastWriteTime(FileName)) { try { ASFileParser.ParseFile(this); OnFileUpdate?.Invoke(this); } catch { OutOfDate = false; Imports.Clear(); Classes.Clear(); Members.Clear(); PrivateSectionIndex = 0; Package = ""; } } } }