public bool TryMarkFileAsSerialized(string name) { if (!SerializedFiles.ContainsKey(name)) { SerializedFiles.Add(name, true); return(true); } return(false); }